gbxp: Draw boxplots from summaries

gbxpR Documentation

Draw boxplots from summaries

Description

gbxp draws box plots based on the given summaries in z. It is usually called from within gboxplot but can be invoked directly.

Usage

gbxp(
  z,
  notch = FALSE,
  width = NULL,
  varwidth = FALSE,
  outline = TRUE,
  notch.frac = 0.5,
  log = "",
  border = par("fg"),
  pars = NULL,
  horizontal = FALSE,
  add = FALSE,
  at = NULL,
  show.names = NULL,
  ...,
  grid = TRUE,
  col.grid = "grey90",
  col.acc = "white"
)

Arguments

z

a list containing data summaries to be used in constructing the plots. These are usually the result of a call to boxplot, but can be generated in any fashion.

notch

if notch is TRUE, a notch is drawn in each side of the boxes. If the notches of two plots do not overlap then the medians are significantly different at the 5 percent level.

width

a vector giving the relative widths of the boxes making up the plot.

varwidth

if varwidth is TRUE, the boxes are drawn with widths proportional to the square-roots of the number of observations in the groups.

outline

if outline is not true, the outliers are not drawn.

notch.frac

numeric in (0,1). When notch = TRUE, the fraction of the box width that the notches should use.

log

character, indicating if any axis should be drawn in logarithmic scale, as in plot.default.

border

character or numeric (vector), the color of the box borders. Is recycled for multiple boxes. Is used as default for the boxcol, medcol, whiskcol, staplecol, and outcol options (see below).

horizontal

logical indicating if the boxplots should be horizontal; default FALSE means vertical boxes.

add

logical, if true add boxplot to current plot.

at

numeric vector giving the locations where the boxplots should be drawn, particularly when add = TRUE; defaults to 1:n where n is the number of boxes.

show.names

Set to TRUE or FALSE to override the defaults on whether an x-axis label is printed for each group.

grid

logical; if TRUE, a background grid will be drawn

col.grid

grid color

col.acc

grid accent color


raredd/plotr documentation built on Nov. 19, 2023, 4:09 a.m.