Description Usage Arguments Author(s) Examples
Generic function of plot method for paFm. Either plot all assets or choose a single asset to plot.
1 2 3 4 |
x |
object of class |
which.plot |
Integer indicates which plot to create: "none" will
create a menu to choose. Defualt is none. |
max.show |
Maximum assets to plot. Default is 6. |
date |
Indicates for attributed returns, the date format should be xts compatible. |
plot.single |
Plot a single asset of lm class. Defualt is FALSE. |
fundName |
Name of the portfolio to be plotted. |
which.plot.single |
Integer indicates which plot to create: "none"
will create a menu to choose. Defualt is none. |
... |
more arguements for |
Yi-An Chen.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
data(managers)
fit <- fitTsfm(asset.names=colnames(managers[,(1:6)]),
factor.names=c("EDHEC LS EQ","SP500 TR"), data=managers)
fm.attr <- paFm(fit)
# plot all
plot(fm.attr, legend.loc="topleft", max.show=6)
dev.off()
# plot only one assets "HAM1
plot(fm.attr, plot.single=TRUE, fundName="HAM1")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.