plot-series {fAssets} | R Documentation |
Displays Series Plots of Assets.
Description
Displays series from sets of assets.
Usage
assetsReturnPlot(x, col = "steelblue", ...)
assetsCumulatedPlot(x, col = "steelblue", ...)
assetsSeriesPlot(x, col = "steelblue", ...)
Arguments
x |
an object of class |
col |
a character string, defining the color to fill the boxes. |
... |
optional arguments to be passed. |
Author(s)
Diethelm Wuertz for the Rmetrics port.
References
Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.
Examples
## LPP2005REC -
# Load Swiss Pension Fund Data:
LPP <- LPP2005REC
head(LPP)
## assetsReturnPlot -
# Create Return Series Plot:
# par(mfrow = c(3, 2))
assetsReturnPlot(LPP[, 1:3])
## assetsCumulatedPlot -
# Create Cumulated Price/Index Plot:
assetsCumulatedPlot(LPP[, "LPP40"], col = "red")
## assetsSeriesPlot
# Crete Time Series Plot:
assetsSeriesPlot(LPP[, c("LMI", "ALT")],
col = c("orange", "brown"))
[Package fAssets version 4023.85 Index]