dyRoller: dygraph rolling average period text box

Description Usage Arguments Value Note Examples

View source: R/roller.R

Description

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.

Usage

1
dyRoller(dygraph, showRoller = TRUE, rollPeriod = 1)

Arguments

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.

Value

A dygraph that displays a range selector

Note

See the online documentation for additional details and examples.

Examples

1
2
3
4
library(dygraphs)

dygraph(discoveries, main = "Important Discoveries") %>% 
  dyRoller(rollPeriod = 5)

dygraphs documentation built on May 2, 2019, 3:34 p.m.

Related to dyRoller in dygraphs...