Dygraph: dyLimit at second axis?

Dear community,
i hope someone can help me with this topic.

I use dygraphs within R-Studio. The online documentation is great, but for the use of dyLimit referring to the second axis i can't find any infrormation.

also my try and error stucks

dygraph(MSFT[, 4], main = "Microsoft Share Price") %>% 
       dySeries("MSFT.Close", label = "MSFT") %>%
       dyLimit(as.numeric(MSFT[1, 4]), color = "red", axis = "y2")

is not an argument that can be used.
By now I create a new column with a single value, but this increases datasize and computation time.

Best regards


1 Like