R create interactive plot with slider which width could be changed, example below, I'm searching in ggvis
R
package, but other are also welcome :
Asked
Active
Viewed 851 times
2 Answers
6
Have a look at dygraphs
and dyRangeSelector()
.
The dygraphs package is an R interface to the dygraphs JavaScript charting library. It provides rich facilities for charting time-series data in R
For more information and examples, have a look at dygraph
's github.io:
install.packages("dygraphs")
library(dygraphs)
lungDeaths <- cbind(mdeaths, fdeaths)
dygraph(lungDeaths) %>%
dySeries("mdeaths", label = "Male") %>%
dySeries("fdeaths", label = "Female") %>%
dyOptions(stackedGraph = TRUE) %>%
dyRangeSelector(height = 20)
Which gives:

Steven Beaupré
- 21,343
- 7
- 57
- 77
-
that's what I'm looking for, but what is the time series underslider ? could I customize ? – Qbik May 17 '16 at 18:45
-
@Qbik I'm not sure I understand what you mean ? Of course, you can customize: have a look at `?dySeries`. – Steven Beaupré May 24 '16 at 17:20
4
Highcharts/Highstock it's another great tool for this kind of plots and there is an awesome API wrapper in R: http://jkunst.com/highcharter/

Lorenzo Rossi
- 1,481
- 1
- 9
- 16