plot.fboxplot: Plot method for the class 'fboxplot'

Description Usage Arguments Examples

View source: R/fboxplot.r

Description

Plot method for the class 'fboxplot'

Usage

1
2
## S3 method for class 'fboxplot'
plot(x, digits = 3, outliers = TRUE, ...)

Arguments

x

an 'fboxplot' object

digits

The number of digits used for printing the p-value or p-interval in the default main.

outliers

Logical. If TRUE, then the functions outside the functional boxplot are drawn.

...

Ignored.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if(requireNamespace("fda", quietly=TRUE)) {
  years <- paste(1:18)
  curves <- fda::growth[['hgtf']][years,]
  # Heights
  cset1 <- create_curve_set(list(r = as.numeric(years),
                                 obs = curves))
  bp <- fBoxplot(cset1, coverage=0.50, type="area", factor=1)
  plot(bp)
  plot(bp) + ggplot2::theme(legend.position="bottom")
  plot(bp) + ggplot2::theme(legend.position="none")
  plot(bp, plot_outliers=FALSE)
}

GET documentation built on March 21, 2021, 9:06 a.m.