plot-pairs {fAssets} | R Documentation |
Assets Pairs Plot
Description
Display several aspects of correlation bettween pairs of assets.
Usage
assetsPairsPlot(x, ...)
assetsCorgramPlot(x,
method = c("pie", "shade"), ...)
assetsCorTestPlot(x, ...)
assetsCorImagePlot(x, labels = TRUE, show = c("cor", "test"),
use = c("pearson", "kendall", "spearman"), abbreviate = 3, ...)
Arguments
x |
any rectangular time series object which can be converted by the
function |
labels |
a logical flag, if |
method |
a character string, the type of graph used in the lower panel. |
show |
a character string, what should be pressented, correlations or results from correlation tests? |
use |
a character string indicating which correlation coefficient or
covariance is to be computed. One of |
abbreviate |
allows to abbreviate strings to at least |
... |
optional arguments to be passed. |
Details
assetsPairsPlot
displays pairs of scatterplots of individual assets,
assetsCorgramPlot
displays correlations between assets,
assetsCorTestPlot
displays and tests pairwise correlations,
assetsCorImagePlot
displays an image plot of a correlations.
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[, 1:6]
head(LPP)
## assetsPairsPlot -
# Create Pairs Plot:
assetsPairsPlot(LPP)
## assetsCorgramPlot -
# Create Corellogram Plot:
assetsCorgramPlot(LPP, method = "pie")
assetsCorgramPlot(LPP, method = "shade")
## assetsCorTestPlot -
# Create Correlation Test Plot:
assetsCorTestPlot(LPP)
## assetsCorImagePlot -
# Create Correlation Image Plot:
assetsCorImagePlot(LPP)