myBoxplot: Boxplot that adds an additional summary statistic (default:...

View source: R/boxplot.with.summary.statistic.R

myBoxplotR Documentation

Boxplot that adds an additional summary statistic (default: mean)

Description

Boxplot that adds an additional summary statistic (default: mean)

Usage

myBoxplot(
  x,
  summaryFunc = mean,
  mpch = 19,
  mcol = "black",
  addSummary = TRUE,
  ...
)

Arguments

x

List, data.frame or matrix for where for each column a boxplot is made

summaryFunc

A function that computes a summary statistic for a vector of values. Default is mean

mpch

The pch value used to plot the value of summaryFunc in the plot

mcol

Color (or vector of colors) used to plot the value of summaryFunc

addSummary

Boolean toggle to plot the summaryFunc or not.

...

Parameters passed to boxplot

Value

A boxplot with the value of the summary statistic indicated.


KlausHerrmann/khermisc documentation built on May 6, 2023, 7:08 p.m.