Description Usage Arguments Examples
Create the k-th mode of variation plot around the mean. The red-line is the functional mean, the grey shaded areas show the range of variations around the mean: +/- Q sqrt{lambda_k} phi_k for the dark grey area Q = 1, and for the light grey are Q = 2.
1 2 | CreateModeOfVarPlotLQ2D(fpcaObj, dSup = NULL, k = 1, domain = "Q",
alpha = 0, numOfModes = 7, dSupPlot = NULL, ...)
|
fpcaObj |
An FPCA class object returned by FPCA(). |
dSup |
The support of the original density used by LQD(relevant only for density domain) |
k |
The k-th mode of variation to plot (default k = 1) |
domain |
character defining if we should plot on the Quantile ('Q') or the Density ('D') domain (default: 'Q') |
alpha |
regularisation parameter |
numOfModes |
scalar number of principal modes to plot (relevant only for density domain, needs to be an odd number >1.) (default: 7) |
dSupPlot |
The support of the original density used for plotting (relevant only for density domain) |
... |
Additional arguments for the 'plot' function. |
1 2 3 4 5 6 7 8 | library(fdapace)
set.seed(1)
n <- 20
pts <- seq(0, 1, by=0.05)
sampWiener <- Wiener(n, pts)
sampWiener <- Sparsify(sampWiener, pts, 10)
res <- FPCA(sampWiener$Ly, sampWiener$Lt)
CreateModeOfVarPlotLQ2D(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.