Description Usage Arguments Value References Examples
Useful for visualizing relationship between one (or several) investments and 
a benchmark. First fund in tickers, gains, or prices is 
used as the benchmark.
1 2 3 4 5  | 
tickers | 
 Character vector of ticker symbols that Yahoo! Finance recognizes, if you want to download data on the fly.  | 
... | 
 Arguments to pass along with   | 
gains | 
 Numeric matrix with 1 column of gains for each investment (can be a vector if there is only one).  | 
prices | 
 Numeric matrix with 1 column of prices for each investment (can be a vector if there is only one).  | 
orders | 
 Numeric vector specifying the orders of linear regression 
models for each y-axis investment. Set to   | 
add.plot | 
 Logical value for whether to add plot data to current plot frame rather than open a new one.  | 
include.legend | 
 Logical value.  | 
colors | 
 Character vector of colors for each curve.  | 
lty | 
 Numeric vector specifying line types for each curve.  | 
plot.list | 
 List of arguments to pass to   | 
points.list | 
 List of arguments to pass to 
  | 
legend.list | 
 List of arguments to pass to 
  | 
pdf.list | 
 List of arguments to pass to   | 
bmp.list | 
 List of arguments to pass to   | 
jpeg.list | 
 List of arguments to pass to   | 
png.list | 
 List of arguments to pass to   | 
tiff.list | 
 List of arguments to pass to   | 
In addition to the graph, a list containing fitted linear regression models 
returned by lm for each investment vs. the benchmark.
Ryan, J.A. and Ulrich, J.M. (2017) quantmod: Quantitative Financial Modelling Framework. R package version 0.4-12, https://CRAN.R-project.org/package=quantmod.
1 2 3 4 5  | ## Not run: 
# Plot daily gains for SSO and UPRO vs. VFINX
fig <- gains_graph(c("VFINX", "SSO", "UPRO"))
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.