panel.barchart2: Control the width of bars in a barchart

panel.barchart2R Documentation

Control the width of bars in a barchart

Description

The box.width argument to the default panel.barchart panel function does not set the height/width of bars correctly. panel.barchart2 corrects this so the box.width argument can be a vector with values for individual bars.

Usage

panel.barchart2(
  x,
  y,
  box.ratio = 1,
  box.width = box.ratio/(1 + box.ratio),
  horizontal = TRUE,
  origin = NULL,
  reference = TRUE,
  stack = FALSE,
  groups = NULL,
  col = if (is.null(groups)) plot.polygon$col else superpose.polygon$col,
  border = if (is.null(groups)) plot.polygon$border else superpose.polygon$border,
  lty = if (is.null(groups)) plot.polygon$lty else superpose.polygon$lty,
  lwd = if (is.null(groups)) plot.polygon$lwd else superpose.polygon$lwd,
  ...,
  identifier = "barchart"
)

Details

Except for the box.width argument, see the definition of parameters in panel.barchart.


gmonette/spida2 documentation built on Aug. 20, 2023, 7:21 p.m.