add shaded areas representing time intervals within "events"
Source:R/dygraphMain.R
addEventShades.Rd
add shaded areas representing time intervals within "events"
Usage
addEventShades(
dygraph,
events,
color = "lightgrey",
signalWidth = kwb.event::hsSigWidth(events)
)
Arguments
- dygraph
dygraph object as returned by dygraph
- events
data frame with columns tBeg (begin time) and tEnd (end time) of events to be drawn
- color
color (default: "lightgrey")
- signalWidth
signal width in seconds = length of time interval that one timestamp in the original data represents, e.g. 300 for 5-minutes-data