scoreplot.MFPCAfit {MFPCA} | R Documentation |
Plot the Scores of a Multivariate Functional Principal Component Analysis
Description
This function plots two scores of a multivariate functional principal component analysis for each observation.
Usage
## S3 method for class 'MFPCAfit'
scoreplot(PCAobject, choices = 1:2, scale = FALSE, ...)
Arguments
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
|
Value
A bivariate plot of scores.
See Also
Examples
# 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
[Package MFPCA version 1.3-10 Index]