R interface to interactive time series plotting using the dygraphs JavaScript library.
dygraph(data, main = NULL, xlab = NULL, ylab = NULL, periodicity = NULL,
group = NULL, elementId = NULL, width = NULL, height = NULL)Either time series data or numeric data. For time series, this
must be an xts object or an object which is convertible to
xts. For numeric data, this must be a named list or data frame,
where the first element/column provides x-axis values and all subsequent
elements/columns provide one or more series of y-values.
Main plot title (optional)
X axis label
Y axis label
Periodicity of time series data (automatically detected via xts::periodicity if not specified).
Group to associate this plot with. The x-axis zoom level of plots within a group is automatically synchronized.
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 in pixels (optional, defaults to automatic sizing)
Height in pixels (optional, defaults to automatic sizing)
Interactive dygraph plot
See the online documentation for additional details and examples.