boxplot.fdawarp | R Documentation |
This function computes the required statistics for building up a boxplot of the aligned functional data. Since the process of alignment provides separation of phase and amplitude variability, the computed boxplot can focus either on amplitude variability or phase variability.
## S3 method for class 'fdawarp'
boxplot(
x,
variability_type = c("amplitude", "phase"),
alpha = 0.05,
range = 1,
what = c("stats", "plot", "plot+stats"),
...
)
## S3 method for class 'ampbox'
boxplot(x, ...)
## S3 method for class 'phbox'
boxplot(x, ...)
## S3 method for class 'curvebox'
boxplot(x, ...)
x |
An object of class |
variability_type |
A string specifying which kind of variability should
be displayed in the boxplot. Choices are |
alpha |
A numeric value specifying the quantile value. Defaults to
|
range |
A positive numeric value specifying how far the plot whiskers
extend out from the box. The whiskers extend to the most extreme data point
which is no more than |
what |
A string specifying what the function should return. Choices are
|
... |
Unused here. |
The function boxplot.fdawarp()
returns optionally an object of class either
ampbox
if variability_type = "amplitude"
or phbox
if variability_type = "phase"
. S3
methods specialized for objects of these classes are
provided as well to avoid re-computation of the boxplot statistics.
If what
contains stats
, a list containing the computed statistics
necessary for drawing the boxplot. Otherwise, the function simply draws the
boxplot and no object is returned.
## Not run:
out <- time_warping(simu_data$f, simu_data$time)
boxplot(out, what = "stats")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.