Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

barplotGroupWeights

barplot of group weights by group or category


Description

This function is called by chart.GroupWeights function if chart.type="barplot"

Usage

barplotGroupWeights(object, ..., grouping = c("groups", "category"),
  main = "Group Weights", las = 3, xlab = NULL, cex.lab = 0.8,
  element.color = "darkgray", cex.axis = 0.8)

Arguments

object

object of class optimize.portfolio

...

passthrough parameters to plot

grouping
  • groups: group the weights by group constraints

  • category_labels: group the weights by category_labels in portfolio object

main

an overall title for the plot: see title

las

numeric in {0,1,2,3}; the style of axis labels

0:

always parallel to the axis [default],

1:

always horizontal,

2:

always perpendicular to the axis,

3:

always vertical.

xlab

a title for the x axis: see title

cex.lab

The magnification to be used for x and y labels relative to the current setting of cex

element.color

color for the default border and axis

cex.axis

The magnification to be used for x and y axis relative to the current setting of cex

Author(s)

Ross Bennett


PortfolioAnalytics

Portfolio Analysis, Including Numerical Methods for Optimization of Portfolios

v1.1.0
GPL-2 | GPL-3
Authors
Brian G. Peterson [cre, aut, cph], Peter Carl [aut, cph], Kris Boudt [ctb, cph], Ross Bennett [ctb, cph], Hezky Varon [ctb], Guy Yollin [ctb], R. Douglas Martin [ctb]
Initial release
2018-05-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.