powered by
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 to add roller to
Whether to show the roller
Number of time scale units (e.g. days, months, years) to average values over.
A dygraph that displays a range selector
# NOT RUN { library(dygraphs) dygraph(discoveries, main = "Important Discoveries") %>% dyRoller(rollPeriod = 5) # }
Run the code above in your browser using DataLab