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

\item{...}{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 portfolio object}
}}

\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 [\emph{default}],}
  \item{1:}{always horizontal,}
  \item{2:}{always perpendicular to the axis,}
  \item{3:}{always vertical.}
}}

\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{
This function is called by chart.GroupWeights function if chart.type="barplot"
}
\author{
Ross Bennett
}