barplotWts function

A Barplot of a Set of Portfolio Weights

A Barplot of a Set of Portfolio Weights

Uses the R barplot function to make a barplot of efficient frontier weights. See the manual page for barplot()

barplotWts( wts.efront, legend.text = NULL, col = NULL, ylab = NULL, xlab = c("MU", "VOL"), bar.ylim = NULL, ... )

Arguments

  • wts.efront: Matrix of weights along the efficient frontier
  • legend.text: Vector of text for the legend
  • col: Vector of colors for the bars
  • ylab: A label for the y axis
  • xlab: A label for the x axis
  • bar.ylim: Limits of the y axis for barplot
  • ...: additional parameters from barplot

Returns

No return value, just a barplot of efficient frontier weights

Examples

args(barplotWts)
  • Maintainer: Doug Martin
  • License: GPL-2
  • Last published: 2023-08-30

Useful links