Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
braverock
GitHub Repository: braverock/portfolioanalytics
Path: blob/master/man/chart.GroupWeights.Rd
1433 views
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/charts.groups.R
\name{chart.GroupWeights}
\alias{chart.GroupWeights}
\title{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{
\item{object}{object of class \code{optimize.portfolio}.}

\item{\dots}{passthrough parameters to \code{\link{plot}}.}

\item{grouping}{\describe{
  \item{groups: }{group the weights by group constraints.}
  \item{category_labels: }{group the weights by category_labels in the \code{portfolio} object.}
}}

\item{plot.type}{"line" or "barplot".}

\item{main}{an overall title for the plot: see \code{\link{title}}.}

\item{las}{numeric in \{0,1,2,3\}; the style of axis labels
\describe{
  \item{0:}{always parallel to the axis,}
  \item{1:}{always horizontal,}
  \item{2:}{always perpendicular to the axis,}
  \item{3:}{always vertical[\emph{default}].}
}}

\item{xlab}{a title for the x axis: see \code{\link{title}}.}

\item{cex.lab}{the magnification to be used for x and y labels relative to the current setting of \code{cex}.}

\item{element.color}{color for the default border and axis.}

\item{cex.axis}{the magnification to be used for x and y axis relative to the current setting of \code{cex}.}
}
\description{
Chart weights by group or category
}
\author{
Ross Bennett
}