call dygraphs::dyEvent repeatedly
Usage
dyEvents(
dygraph,
dates,
labels = "",
labelLocs = c("top", "bottom"),
colors = "black",
strokePatterns = "dashed"
)
Arguments
- 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")