View source: R/CreateFuncBoxPlot.R
CreateFuncBoxPlot | R Documentation |
Using an FPCA object create a functional box-plot based on the function scores. The green line corresponds to the functional median, the dark gray area to the area spanned by the curves within the 25th and 75-th percentile and the light gray to the area spanned by the curves within the 2.5th and 97.5-th percentile.
CreateFuncBoxPlot(fpcaObj, optns = list(), ...)
fpcaObj |
An object of class FPCA returned by the function FPCA(). |
optns |
A list of options control parameters specified by |
... |
Additional arguments for the 'plot' function. |
Available control options are
inflation ifactor for the bag-plot defining the loop of bag-plot or multiplying ifactor the KDE pilot bandwidth matrix. (see ?aplpack::compute.bagplot; ?ks::Hpi respectively; default: 2.58; 2 respectively).
string defining the method used ('KDE', 'pointwise' or 'bagplot') (default: 'bagplot')
logical specifying if the KDE estimate should be unimodal (default: FALSE, relevant only for variant='KDE')
vector of indices corresponding to which samples one should overlay (Default: NULL)
integer number of the first K components used for the representation. (default: length(fpcaObj$lambda ))
P. J. Rousseeuw, I. Ruts, J. W. Tukey (1999): The bagplot: a bivariate boxplot, The American Statistician, vol. 53, no. 4, 382-387
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,
list(dataType='Sparse', error=FALSE, kernel='epan', verbose=TRUE))
CreateFuncBoxPlot(res, list(addIndx=c(1:3)) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.