View source: R/FRTM_plot_functions.R
plot.mFPCA | R Documentation |
This function provides plots of the principal components of the mFPCA.
## S3 method for class 'mFPCA'
plot(x, ...)
x |
The output of |
... |
A variable |
No return value, called for side effects.
library(funcharts)
data <- simulate_data_FRTM(n_obs = 100)
X <- sapply(1:100, function(ii)
data$x_true[[ii]])
x_fd <-
fda::smooth.basis(y = X,
argvals = data$grid,
fda::create.bspline.basis(c(0, 1), 30))$fd
H <- sapply(1:100, function(ii)
data$h[[ii]])
h_fd <-
fda::smooth.basis(y = H,
argvals = data$grid,
fda::create.bspline.basis(c(0, 1), 30))$fd
mod_mFPCA <- mFPCA(x_fd, h_fd, ncom = "ptv", par_ncom = 0.95)
plot(mod_mFPCA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.