The dyCrosshair plugin draws a crosshair line over the point closest to the mouse when the user hovers over the graph. It has a "direction" option which is provided in the R wrapper function and then forwarded to the plugin using the "options" argument to dyPlugin.
The dyCrosshair plugin draws a crosshair line over the point closest to the mouse when the user hovers over the graph. It has a "direction" option which is provided in the R wrapper function and then forwarded to the plugin using the "options" argument to dyPlugin.
dyCrosshair(dygraph, direction = c("both", "horizontal", "vertical"))
dygraph |
Dygraph to add plugin to |
direction |
Crosshair direction. Valid options are: "both", "horizontal", "vertical" |
Dygraph with Crosshair plugin enabled
library(dygraphs) dygraph(ldeaths) %>% dyRangeSelector() %>% dyCrosshair(direction = "vertical")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.