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

chart.GroupWeights

Chart weights by group or category


Description

Chart weights by group or category

Usage

chart.GroupWeights(object, ..., grouping = c("groups", "category"),
  plot.type = "line", 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 the portfolio object.

plot.type

"line" or "barplot".

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,

1:

always horizontal,

2:

always perpendicular to the axis,

3:

always vertical[default].

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.