boxplotGrob: Construct a boxplot grob

Description Usage Arguments

View source: R/grob-boxplot.R

Description

boxplotGrob constructs a horizontally oriented boxplot that describes a vector of data. To create a vertical boxplot, rotate the viewport it is drawn in. boxplotGrobs inherit the #' class "boxplot".

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
boxplotGrob(
  data,
  at = unit(0.15, "native"),
  height = unit(0.2, "native"),
  box.color = "lightgrey",
  median.color = "lightgrey",
  stat = NULL,
  stat.color = "blue",
  show.w = TRUE,
  show.m = TRUE,
  name = NULL,
  gp = gpar(lwd = 2),
  vp = NULL
)

Arguments

data

A numeric vector of data

at

The height on the y axis of the middle of the boxplot

height

The height of the boxplot

box.color

A character string. The color to use for the box and whiskers

median.color

A character string. The color to use for the median line

show.w

A logical value that describes whether the whiskers should be drawn

name

A name for the grob to be constructed

gp

graphical parameters for the boxplot, constructed with gpar()

vp

A default viewport to be used when drawing the grob


iNZightVIT/vit documentation built on Aug. 3, 2020, 4:11 a.m.