boxplotGrob {vit}R Documentation

Construct a boxplot grob

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

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


[Package vit version 1.2.8 Index]