Description Usage Arguments Value Examples
R tutorial of htmlwidgets using dygraph Javascript library.
1 2 |
data |
Time series data,
must be an xts object or an object which is convertible to
|
main |
Main plot title (optional) |
xlab |
X axis label |
ylab |
Y axis label |
width |
Width in pixels (optional, defaults to automatic sizing) |
height |
Height in pixels (optional, defaults to automatic sizing) |
elementId |
Use an explicit element ID for the widget (rather than an automatically generated one). Useful if you have other JavaScript that needs to explicitly discover and interact with a specific widget instance. |
Interactive dygraph plot
1 2 3 | library(minidygraphs)
lungDeaths <- cbind(mdeaths, fdeaths)
minidygraph(lungDeaths)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.