dyEvents | R Documentation |
call dygraphs::dyEvent repeatedly
dyEvents( dygraph, dates, labels = "", labelLocs = c("top", "bottom"), colors = "black", strokePatterns = "dashed" )
dygraph |
Dygraph to add event line to |
dates |
vector of Date/time for the event (must be a POSIXct object or another object convertible to POSIXct via as.POSIXct) |
labels |
vector of labels for the events. (default: "") |
labelLocs |
vector of locations for the labels ("top" or "bottom"). default: c("top", "bottom") |
colors |
vector of colors for each event line. This can be of the form "#AABBCC" or "rgb(255,100,200)" or "yellow". Defaults to black. |
strokePatterns |
vector of predefined stroke pattern types ("dotted", "dashed", or "dotdash") |
modified dygraph object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.