Description Usage Arguments Details Value
Plot PCA charts
1 | chart_pca(ret, n_pc = 8)
|
ret |
data.frame containing returns |
n_pc |
number of PCs to cut off plots |
The loadings plot displays a bar chart for each PC up to the
n_pc
paramter. It is assumed the first column of the returns is the
fund or asset of interest and is highlighted. The cumulative variance
explained chart displays the cumulative portion of total variance explained
by each PC.
a list containing two ggplots, see details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.