Learn R Programming

fAssets (version 3002.80)

seriesPlot: 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 timeSeries.
col
a character string, defining the color to fill the boxes.
...
optional arguments to be passed.

References

Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.

Examples

Run this code
## 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"))

Run the code above in your browser using DataLab