boxplot.BData: Functional Boxplot for BData objects

View source: R/plots.R

boxplot.BDataR Documentation

Functional Boxplot for BData objects

Description

Currently this function used the [fda::fbplot] function on the evaluated functions in compbination with [depthRank] as depth measure.

Usage

## S3 method for class 'BData'
boxplot(
  x,
  ...,
  depth,
  depthType = c("depthquantile", "spatialdepth", "meandistance", "median"),
  support = getSupport(x),
  SD = supportDiscretization(support, nEval),
  nEval = 513,
  xlim = getSupport1DPlottingLimits(support)
)

## S3 method for class 'BDataSplines'
boxplot(x, ...)

## S3 method for class 'BDataSamples'
boxplot(x, ...)

Arguments

x

a BData object

...

further parameters for [graphics::boxplot] or [fda::fbplot]

depth

the depth used to identify the middle region, increasing inwards towards the median.

depthType

if depth is missing, an algorithm to compute it. The default is "depthquantile", which uses the spatial depth, but ensures a 50 used the spatialdepth directly, the others use the 1-[centralityQuantiles] with the given method.

support

the support on which the functions should be plotted

SD

support discretization of the support (see [supportDiscretization]

nEval

the number of datapoints

xlim

the plotting limits in x direction.

Value

'NULL' invisibly, called for the side effect of producing a functional boxplot.

Functions

  • boxplot(BDataSplines): method for BDataSplines uses classical boxplot for the coefficients.

  • boxplot(BDataSamples): method for BDataSamples uses classical boxplot for the the datasets.

See Also

fda::fbplot

Examples

X = BDataSplines(matrix(rnorm(10*5),ncol=5),basis=B2Unif01Basis5)
boxplot(X)
boxplot(clr(X),depthType="meandistance")
boxplot(clr(X))


DistributionalDDA documentation built on Oct. 20, 2026, 5:06 p.m.