Description Usage Arguments Details Value Examples
Plot two xts time series with two yaxes in an x11 window.
1  chart_xts2y(x_ts, col_or = "red", x_11 = TRUE, ...)


An xts time series with two columns. 

A string specifying the color of the second line and
axis (default is 

A Boolean argument: if 

Additional arguments to function 
The function chart_xts2y()
creates a plot of two xts
time series with two yaxes.
By default chart_xts2y()
opens and plots in an x11 window.
The function chart_xts2y()
uses the standard plotting functions from
base R, and the function plot.zoo()
from package
zoo.
The x_ts column names returned invisibly, and a plot in an x11 window produced as a side effect.
1 2 3  # Plot two time series
rutils::chart_xts2y(cbind(quantmod::Cl(rutils::etf_env$VTI),
quantmod::Cl(rutils::etf_env$IEF))["2015"])

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.