Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot_pca_mfd

Plot the harmonics of a pca_mfd object


Description

Plot the harmonics of a pca_mfd object

Usage

plot_pca_mfd(pca, harm = 0, scaled = FALSE)

Arguments

pca

A fitted multivariate functional principal component analysis (MFPCA) object of class pca_mfd.

harm

A vector of integers with the harmonics to plot. If 0, all harmonics are plotted. Default is 0.

scaled

If TRUE, eigenfunctions are multiplied by the square root of the corresponding eigenvalues, if FALSE the are not scaled and the all have unit norm. Default is FALSE

Value

A ggplot of the harmonics/multivariate functional principal components contained in the object pca.

Examples

library(funcharts)
mfdobj <- data_sim_mfd()
pca_obj <- pca_mfd(mfdobj)
plot_pca_mfd(pca_obj)

funcharts

Functional Control Charts

v1.0.0
GPL-3
Authors
Christian Capezza [cre, aut], Fabio Centofanti [aut], Antonio Lepore [aut], Alessandra Menafoglio [aut], Biagio Palumbo [aut], Simone Vantini [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.