dyRoller | R Documentation |
Add a rolling average period text box to the bottom left of the plot. Y values are averaged over the specified number of time scale units.
dyRoller(dygraph, showRoller = TRUE, rollPeriod = 1)
dygraph |
Dygraph to add roller to |
showRoller |
Whether to show the roller |
rollPeriod |
Number of time scale units (e.g. days, months, years) to average values over. |
A dygraph that displays a range selector
See the online documentation for additional details and examples.
library(dygraphs) dygraph(discoveries, main = "Important Discoveries") %>% dyRoller(rollPeriod = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.