chart_dygraph2y | R Documentation |
Plot an interactive dygraphs line plot for two xts time series, with two "y" axes.
chart_dygraph2y(xtsv, ...)
xtsv |
An xts time series with two columns. |
... |
Additional arguments to function |
The function chart_dygraph2y()
creates an interactive dygraphs
line plot with two "y" axes.
The function chart_dygraph2y()
uses plotting functions from the
package
dygraphs.
A dygraphs
plot object.
# Plot an interactive dygraphs line plot with two "y" axes
prices <- cbind(Ad(rutils::etfenv$VTI), Ad(rutils::etfenv$IEF))
colnames(prices) <- get_name(colnames(prices), field=2)
rutils::chart_dygraph2y(prices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.