-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathchart.Weights.Rd
116 lines (96 loc) · 4.07 KB
/
chart.Weights.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
\name{chart.Weights}
\alias{chart.Weights}
\alias{chart.Weights.opt.list}
\alias{chart.Weights.optimize.portfolio.DEoptim}
\alias{chart.Weights.optimize.portfolio.GenSA}
\alias{chart.Weights.optimize.portfolio.pso}
\alias{chart.Weights.optimize.portfolio.random}
\alias{chart.Weights.optimize.portfolio.rebalancing}
\alias{chart.Weights.optimize.portfolio.ROI}
\title{boxplot of the weights of the optimal portfolios}
\usage{
\method{chart.Weights}{optimize.portfolio.DEoptim} (object, ..., neighbors = NULL, main = "Weights",
las = 3, xlab = NULL, cex.lab = 1,
element.color = "darkgray", cex.axis = 0.8,
colorset = NULL, legend.loc = "topright",
cex.legend = 0.8, plot.type = "line")
\method{chart.Weights}{optimize.portfolio.random} (object, ..., neighbors = NULL, main = "Weights",
las = 3, xlab = NULL, cex.lab = 1,
element.color = "darkgray", cex.axis = 0.8,
colorset = NULL, legend.loc = "topright",
cex.legend = 0.8, plot.type = "line")
\method{chart.Weights}{optimize.portfolio.ROI} (object,
..., neighbors = NULL, main = "Weights", las = 3,
xlab = NULL, cex.lab = 1, element.color = "darkgray",
cex.axis = 0.8, colorset = NULL,
legend.loc = "topright", cex.legend = 0.8,
plot.type = "line")
\method{chart.Weights}{optimize.portfolio.pso} (object,
..., neighbors = NULL, main = "Weights", las = 3,
xlab = NULL, cex.lab = 1, element.color = "darkgray",
cex.axis = 0.8, colorset = NULL,
legend.loc = "topright", cex.legend = 0.8,
plot.type = "line")
\method{chart.Weights}{optimize.portfolio.GenSA} (object,
..., neighbors = NULL, main = "Weights", las = 3,
xlab = NULL, cex.lab = 1, element.color = "darkgray",
cex.axis = 0.8, colorset = NULL,
legend.loc = "topright", cex.legend = 0.8,
plot.type = "line")
chart.Weights(object, ...)
\method{chart.Weights}{optimize.portfolio.rebalancing} (object, ..., main = "Weights")
\method{chart.Weights}{opt.list} (object,
neighbors = NULL, ..., main = "Weights", las = 3,
xlab = NULL, cex.lab = 1, element.color = "darkgray",
cex.axis = 0.8, colorset = NULL,
legend.loc = "topright", cex.legend = 0.8,
plot.type = "line")
}
\arguments{
\item{object}{optimal portfolio object created by
\code{\link{optimize.portfolio}}.}
\item{neighbors}{set of 'neighbor' portfolios to
overplot. See Details.}
\item{\dots}{any other passthru parameters .}
\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}{provides the color for drawing
less-important chart elements, such as the box lines,
axis lines, etc.}
\item{cex.axis}{The magnification to be used for axis
annotation relative to the current setting of
\code{cex}.}
\item{colorset}{color palette or vector of colors to
use.}
\item{legend.loc}{location of the legend. If NULL, the
legend will not be plotted.}
\item{cex.legend}{The magnification to be used for legend
annotation relative to the current setting of
\code{cex}.}
\item{plot.type}{"line" or "barplot" to plot.}
}
\description{
This function charts the optimal weights of a portfolio
run via \code{\link{optimize.portfolio}} or
\code{\link{optimize.portfolio.rebalancing}}. The upper
and lower bounds on weights can be plotted for single
period optimizations. The optimal weights will be charted
through time for \code{optimize.portfolio.rebalancing}
objects. For \code{optimize.portfolio.rebalancing}
objects, the weights are plotted with
\code{\link[PerformanceAnalytics]{chart.StackedBar}}.
}
\seealso{
\code{\link{optimize.portfolio}}
\code{\link{optimize.portfolio.rebalancing}}
\code{\link[PerformanceAnalytics]{chart.StackedBar}}
}