chart_pca: Plot PCA charts

Description Usage Arguments Details Value

View source: R/Report.R

Description

Plot PCA charts

Usage

1
chart_pca(ret, n_pc = 8)

Arguments

ret

data.frame containing returns

n_pc

number of PCs to cut off plots

Details

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.

Value

a list containing two ggplots, see details


alejandro-sotolongo/InvestmentSuite documentation built on Jan. 19, 2020, 5:20 p.m.