Description Usage Arguments Details Value Note Author(s) References Examples
Creates graph of investment growth for one or more investments.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
tickers |
Character vector of ticker symbols. |
... |
Arguments to pass along with |
prices |
Numeric matrix of prices (daily or otherwise), where each column has prices for a particular investment. |
initial |
Numeric value indicating what you would like to scale the initial price of each
fund to. If set to |
add.plot |
If |
colors |
Character string or vector of colors for each investment. |
lty |
Numeric string or vector of line types for each investment. |
plot.list |
Optional list of inputs to pass to |
points.list |
Optional list of inputs to pass to |
grid.list |
Optional list of inputs to pass to |
legend.list |
Optional list of inputs to pass to |
pdf.list |
Optional list of inputs to pass to |
bmp.list |
Optional list of inputs to pass to |
jpeg.list |
Optional list of inputs to pass to |
png.list |
Optional list of inputs to pass to |
tiff.list |
Optional list of inputs to pass to |
If tickers
is specified, it gets passed to load.gains
to
load historical prices from Yahoo! Finance using the quantmod package
[1]. If prices
is specified, performance metrics are calculated directly
from that information.
In addition to the graph, a list containing the following items: (1) A numeric
matrix named prices
of prices for each investment; (2) a numeric vector
named means
of mean gains for each ticker; and (3) a numeric matrix named
corr.matrix
containing a correlation matrix for gains of each ticker.
NA
Dane R. Van Domelen
1. Jeffrey A. Ryan (2016). quantmod: Quantitative Financial Modelling Framework. R package version 0.4-6, https://cran.r-project.org/package=quantmod.
Acknowledgment: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-0940903.
1 |
Loading required package: rbenchmark
[1] NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.