Include a dygraph plugin
dyPlugin(dygraph, name, path, options = list(), version = "1.0")
Dygraph to add plugin to
Name of plugin
Path to plugin JavaScript file
Named list of options to pass to plugin constructor
Plugin version (e.g. version of package which provides the plugin)
A dygraph with the specified plugin enabled.
You can use dygraphs plugins to customize the appearance of dygraphs as well as add new interactive behaviors. For additional information on creating dygraphs plugins see the dygraphs plugins documentation. Once you've created a dygraphs plugins you can use the dyPlugin function to create an R wrapper for it. See https://rstudio.github.io/dygraphs/gallery-plugins.html for details on how to do this.