Today I learned about dygraphs, a fast, flexible open source JavaScript charting library. As everything in JavaScript, the charts produced by dygraphs integrate completely in the webbrowser and are thus very functional and interactive. See, for instance, the below where the graph highlights the y-axis value for both time series in the graph based on the x-axis value of my mouse location (January 24 2009). Very cool!
While I am no JS hero, the webpage includes a dypgrahs tutorial, as well as a playground environment.
Fortunately, I do know my way around R, and of course someone had already integrated dypgrahs in R in the form of the dygraphs
R package. It works like a charm!
install.packages("dygraphs") library("dygraphs") dygraph(AirPassengers)
Also in R, your dygraphs are fully interactive, with my mouse hoevering over June 1951 in the below example.
And you can add all kinds of cool elements and modifications to the graphs, such as for instance a range selector:
dygraph(AirPassengers) %>% dyRangeSelector()
For the full range of visualization options dygraphs offers in R, please do have a look at the official RStudio page.