Learn R Programming

PortfolioAnalytics (version 2.0.0)

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

Ross Bennett