addEventShades | R Documentation |
add shaded areas representing time intervals within "events"
addEventShades( dygraph, events, color = "lightgrey", signalWidth = kwb.event::hsSigWidth(events) )
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 |
modified dygraph object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.