Description Usage Arguments Value Note Examples
R interface to interactive time series plotting using the dygraphs JavaScript library.
1 2 |
data |
Either time series data or numeric data. For time series, this
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 |
periodicity |
Periodicity of time series data (automatically detected via xts::periodicity if not specified). |
group |
Group to associate this plot with. The x-axis zoom level of plots within a group is automatically synchronized. |
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. |
width |
Width in pixels (optional, defaults to automatic sizing) |
height |
Height in pixels (optional, defaults to automatic sizing) |
Interactive dygraph plot
See the online documentation for additional details and examples.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.