dygraph(dysp, main = titre) %>% dyAxis("y", label = "Intensity (a.u.)") %>% dyAxis("x", label = "m/z") %>% dyRangeSelector(keepMouseZoom = TRUE, dateWindow = c(50,200)) %>% dyHighlight(hideOnMouseOut = FALSE, highlightSeriesOpts = list(strokeWidth = 2)) %>% dyOptions(stackedGraph = FALSE, axisLineWidth = 1.5, fillGraph = TRUE, gridLineColor = "lightblue", colors = dy_color) %>% dyLegend(show = "onmouseover", hideOnMouseOut = TRUE) %>% dyUnzoom()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.