Description Usage Arguments Author(s) References Examples

Displays density of assets returns as a histogram and/or as log density plot.

1 2 3 4 | ```
assetsHistPlot(x, col = "steelblue", skipZeros = FALSE, ...)
assetsLogDensityPlot(x, estimator = c("hubers", "sample", "both"),
labels = TRUE, ...)
``` |

`x` |
any rectangular time series object which can be converted by the
function |

`skipZeros` |
a logical, should zeros be skipped in the histogram plot of the return series ? |

`col` |
a character string, defining the color to fill the boxes. |

`estimator` |
a character string naming the type of estimator to fit the mean
and variance of the normal density. This may be either |

`labels` |
a logical flag, if |

`...` |
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.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
## LPP2005REC -
# Load Swiss Pension Fund Data:
x <- LPP2005REC
head(x)
## assetsHistPlot -
# Create Histogram Plot: assetsHistPlot -
# par(mfrow = c(2, 2))
assetsHistPlot(x[, 1:4])
## assetsLogDensityPlot -
#Create Log Density Plot: assetsLogDensityPlot -
# par(mfrow = c(1, 1))
assetsLogDensityPlot(x[, "ALT"], estimator = "both")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.