optimize.portfolio
, optimize.portfolio.rebalancing
, and
opt.list
objects. This function charts the contribution or percent
contribution of the resulting objective measures of a
risk_budget_objective
. The risk contributions for optimize.portfolio.rebalancing
objects are plotted through time with chart.StackedBar
.
chart.RiskBudget(object, ...)
"chart.RiskBudget"(object, ..., neighbors = NULL, risk.type = "absolute", main = "Risk Contribution", ylab = "", xlab = NULL, cex.axis = 0.8, cex.lab = 0.8, element.color = "darkgray", las = 3, ylim = NULL)
"chart.RiskBudget"(object, ..., match.col = "ES", risk.type = "absolute", regime = NULL, main = "Risk Contribution")
"chart.RiskBudget"(object, ..., match.col = "ES", risk.type = "absolute", main = "Risk Budget", plot.type = "line", cex.axis = 0.8, cex.lab = 0.8, element.color = "darkgray", las = 3, ylim = NULL, colorset = NULL, legend.loc = NULL, cex.legend = 0.8)
optimize.portfolio
or optimize.portfolio.rebalancing
plot
opt.list
object
may contain risk budgets for ES or StdDev and this will match the proper
column names of the objectives list outp (e.g. ES.contribution).optimize.portfolio.rebalancing
run with regime switching portfolios.cex
.cex
.
plot
cex
neighbors
may be specified in three ways.
The first is as a single number of neighbors. This will extract the
neighbors
closest to the portfolios in terms of the out
numerical statistic.
The second method consists of a numeric vector for neighbors
.
This will extract the neighbors
with portfolio index numbers that
correspond to the vector contents.
The third method for specifying neighbors
is to pass in a matrix.
This matrix should look like the output of extractStats
, and
should contain properly named contribution and pct_contrib columns.
optimize.portfolio
optimize.portfolio.rebalancing
chart.StackedBar