fPORTFOLIO | R Documentation |
A collection and description of functions allowing to gain information about optimal portfolios. Generally, optimization is done via three arguments, data, specification of the portfolio, and constraints, while function portfolioFrontier has two additional arguments for title and description.
## S3 method for class 'fPORTFOLIO'
plot(x, which = "ask", control = list(), ...)
## S3 method for class 'fPORTFOLIO'
summary(object, ...)
control |
a list, defining the plotting parameters. The list modifies amongst
others the color, e.g. |
which |
which of the plots should be displayed? |
object, x |
an S4 object of class |
... |
optional arguments to be passed. |
Portfolio Class:
This S4 class contains all information about the portfolio. Basically these are risk measure, mean and covariance estimation, target return, risk free rate, number of frontier points, ranges for calculation, see the "Value" section for a detailed description of the slots.
portfolioFrontier()
returns an S4 object of class "fPORTFOLIO"
, with the following
slots:
@call |
a call, returning the matched function call. |
@data |
a list with two named elements, |
@description |
a character string, allowing for a brief project description. |
@portfolio |
a list, containing parameter specifications for the portfolio: |
@specification |
a list with one named element |
@title |
a title string. |
feasiblePortfolio
cmlPortfolio
tangencyPortfolio
minvariancePortfolio
efficientPortfolio
return an S4 object of class fPORTFOLIO
having information only
about one portfolio.
In the following all elements of argument control from functions
plot
, weightsSlider
, frontierSlider
are listed.
[weightsSlider, frontierSlider] - a numeric, determining the numbers of slider points, by default nFrontierPoints/10.
[weightsSlider, frontierSlider] -
a character string, denoting the slidertype, by default "frontier"
for frontierSlider
and "weights" for weightsSlider
.
[plot, frontierSlider] - a character string, defining color of the Sharpe ratio plot, by default "black".
a character string, defining color of the minimum variance portfolio, by default "red".
a character string, defining color of the tangency portfolio, by default "steelblue".
[plot, frontierSlider] - a character string, defining color of the market portfolio and the capital market line, by default "green".
[plot, frontierSlider] - a character string, defining the color of the equal weights portfolio, by default "blue".
[weightsSlider] - a character string, defining color of the point indicating the current portfolio, by default "red".
a character string vector, defining color of the
single asset portfolios. The vector must have length the number
of assets, by default rainbow
.
[plot, frontierSlider] - a character string, defining color of the two assets efficient frontier, by default "grey".
[plot, frontierSlider] - a character string, defining color of the Monte Carlo portfolios, by default "black".
a number, defining symbol used for the minimum
variance portfolio. See points
for description.
Default symbol is 17.
a number, defining symbol used for the tangency portfolio.
See points
for description.
Default symbol is 17.
[plot, frontierSlider] -
a number, defining symbol used for the market portfolio.
See points
for description.
Default symbol is 17.
[plot, frontierSlider] -
a number, defining symbol used for the equal weights portfolio.
See points
for description.
Default symbol is 15.
a number, defining symbol used for the single asset portfolios.
See points
for description.
Default symbol is 18.
[plot, frontierSlider] - a number, determining size (percentage) of the Sharpe ratio plot, by default 0.1.
a number, determining size (percentage) of the minimum variance portfolio symbol, by default 1.
a number, determining size (percentage) of the tangency portfolio symbol, by default 1.25.
[plot, frontierSlider] - a number, determining size (percentage) of the market portfolio symbol, by default 1.25.
[plot, frontierSlider] - a number, determining size (percentage) of the equal weights portfolio symbol, by default 0.8.
[weightsSlider] - a number, determining size (percentage) of the point indicating the current portfolio equal weights portfolio symbol, by default 0.8.
a number, determining size (percentage) of the singel asset portfolio symbols, by default 0.8.
[plot, frontierSlider] - a number, determining size (percentage) of the two assets efficient frontier plot, by default 0.01.
[plot, frontierSlider] - a number, determining size (percentage) of the Monte Carol portfolio symbols, by default 0.01.
[plot, frontierSlider] - a number, determining size (percentage) of the Monte Carol portfolio symbols, by default 0.01.
[plot] - a number, determining number of Monte Carol portfolio, by default 5000.
[plot, frontierSlider] - a vector, containing factors for shrinking and stretching the x- and y-axis, by default NULL, i.e. c(1, 1) is used. Default pie size is 1/15 of the plot range.
[plot, frontierSlider] - a number, determining the weight on the efficient frontier, which is illustrated by the pie. Default is tangency portfolio
[plot, frontierSlider] - a vector, containing the pie's x- and y-axis offset from the efficient frontier. Default is NULL, i.e. the pie is set one default radius left of the efficient frontier.
[weightsSlider, frontierSlider] - a vector, containing x-axis plot limits of the efficient frontier. Default setting is maximum of frontier range or single assets portfolios.
[weightsSlider, frontierSlider] - a vector, containing y-axis plot limits of the efficient frontier. Default setting is maximum of frontier range or single assets portfolios.
Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.