Skip to contents

Common Boxplot Component of distantia_boxplot() and momentum_boxplot()

Usage

utils_boxplot_common(
  variable = NULL,
  value = NULL,
  fill_color = NULL,
  f = median,
  main = NULL,
  xlab = NULL,
  ylab = NULL,
  text_cex = 1
)

Arguments

variable

(required, character vector) vector with variable or time series names. Default: NULL

value

(required, numeric vector) vector of numeric values to compute the boxplot for. Must have the same length as variable. Default: NULL

fill_color

(optional, character vector) boxplot fill color. Default: NULL

f

(optional, function) function used to aggregate the input data frame and arrange the boxes. One of mean or median. Default: median.

main

(optional, string) boxplot title. Default: NULL

xlab

(optional, string) x axis label. Default: NULL

ylab

(optional, string) y axis label. Default: NULL

text_cex

(optional, numeric) Multiplier of the text size. Default: 1

Value

boxplot

Examples

utils_boxplot_common(
  variable = rep(x = c("a", "b"), times = 50),
  value = stats::runif(100)
)