The dygraphs R library is my favorite tool to plot time series. The chart #316 describes extensively its basic utilisation, notably concerning the input format you need to use it. This page aims to describe the chart types that this library offers. Note that you can zoom and hover on every following charts!

Line and dots


Area chart


Step plot


Stem plot


Candle stick

Note that you need to provide at least 4 values for each time stamp. If not, candle do not appear.


Line chart with interval

This is very handy to represent confidence interval around your time series.


Note that the Rstudio documentation is absolutely awesome and will give you more details concerning potential customisation.




Search the gallery

Leave a Reply

1 Comment on "#317 Time series with the dygraphs library"

newest oldest most voted
Notify of

Hi, those charts are beautiful! Where did you host those interactive charts and how did you embed them into your website?