I have a dygraph plot and want to add several event dyLimit lines..but programmatically. The standard syntax in the server.R for this would be:
dygraph(MSFT[, 4], main = "Microsoft Share Price") %>%
dySeries("MSFT.Close", label = "MSFT") %>%
dyLimit(as.numeric(MSFT[1, 4]), color = "red")
So how can I add these dyLimits in a loop?