dyPlugin: Include a dygraph plugin

View source: R/dependency.R

dyPluginR Documentation

Include a dygraph plugin

Description

Include a dygraph plugin

Usage

dyPlugin(dygraph, name, path, options = list(), version = "1.0")

Arguments

dygraph

Dygraph to add plugin to

name

Name of plugin

path

Path to plugin JavaScript file

options

Named list of options to pass to plugin constructor

version

Plugin version (e.g. version of package which provides the plugin)

Details

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.

Value

A dygraph with the specified plugin enabled.


rstudio/dygraphs documentation built on March 17, 2023, 10:48 a.m.