panel.barchart2 | R Documentation |
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.
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"
)
Except for the box.width argument, see the definition of parameters in panel.barchart.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.