seriesPlot {fAssets} | R Documentation |
Displays series from sets of assets.
assetsReturnPlot(x, col = "steelblue", ...) assetsCumulatedPlot(x, col = "steelblue", ...) assetsSeriesPlot(x, col = "steelblue", ...)
x |
an object of class timeSeries .
|
col |
a character string, defining the color to fill the boxes. |
... |
optional arguments to be passed. |
Diethelm Wuertz for the Rmetrics port.
Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.
## LPP2005REC - LPP = as.timeSeries(data(LPP2005REC)) ## assetsReturnPlot - # par(mfrow = c(3,2)) assetsReturnPlot(LPP[, 1:3]) ## assetsCumulatedPlot - assetsCumulatedPlot(LPP[, "LPP40"], col = "red") ## assetsSeriesPlot assetsSeriesPlot(LPP[, c("LMI", "ALT")], col =c("orange", "brown"))