1. Automatically plots xts time-series objects (or any object convertible to xts.)
2. Highly configurable axis and series display (including optional second Y-axis.)
3. Rich interactive features, including zoom/pan and series/point highlighting.
4. Display upper/lower bars (ex. prediction intervals) around the series.
5. Various graph overlays, including shaded regions, event lines, and point annotations.
6. Use at the R console, just like conventional R plots (via RStudio Viewer.)
7. Seamless embedding within R Markdown documents and Shiny web applications.
Before proceeding, please follow our short tutorial.
Look at the examples given and try to understand the logic behind them. Then, try to solve the exercises below by using R without looking at the answers. Then, check the solutions to check your answers.
Unite the two time series data-sets
fdeaths and create a time-series dygraph of the new data-set.
Insert a date range selector into the dygraph you just created.
Change the label names of “mdeaths” and “fdeaths” to “Male” and “Female.”
Make the graph stacked.
Set the date range selector height to 20.
Add a main title to your graph.
Use the tutorial’s predicted data-set to create a dygraph of “lwr”, “fit”, and “upr”, but display the label as the summary of them.
Set the colors to red.
Remove the x-axis grid lines from your graph.
Remove the y-axis grid lines from your graph.