View source: R/MFPCAfit_methods.R
scoreplot.MFPCAfit | R Documentation |
This function plots two scores of a multivariate functional principal component analysis for each observation.
## S3 method for class 'MFPCAfit' scoreplot(PCAobject, choices = 1:2, scale = FALSE, ...)
PCAobject |
An object of class |
choices |
The indices of the scores that should by displayed. Defaults
to |
scale |
Logical. Should the scores be scaled by the estimated
eigenvalues to emphasize the proportions of total variance explained by the
components. Defaults to |
... |
Further parameters passed to the
|
A bivariate plot of scores.
MFPCA
# and calculate MFPCA (cf. MFPCA help) set.seed(1) # simulate data (one-dimensional domains) sim <- simMultiFunData(type = "split", argvals = list(seq(0,1,0.01), seq(-0.5,0.5,0.02)), M = 5, eFunType = "Poly", eValType = "linear", N = 100) # MFPCA based on univariate FPCA PCA <- MFPCA(sim$simData, M = 5, uniExpansions = list(list(type = "uFPCA"), list(type = "uFPCA"))) # Plot the first two scores scoreplot(PCA) # no scaling (default) scoreplot(PCA, scale = TRUE) # scale the scores by the first two eigenvalues
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.