O'Reilly logo

Web Application Development with R Using Shiny - Second Edition by Chris Beeley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dygraphs

The dygraphs library in JavaScript (http://dygraphs.com/) is designed to show the time series and trend data. It supports zoom, pan, mouseover, and even supports mobile devices by offering pinch to zoom. The dygraphs R package provides a handy interface to many of the functions of the dygraphs library. It can be installed using install.packages("dygraphs").

We'll take a look at a few of the things that can be done with the package here. Let's take a look at the finished graph:

Dygraphs

There are a couple of things you need to make a note of on this graph. Firstly, you can see the mouseover effect at the top-right of the graph, where the date and values ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required