addlabels.barplot {mixstock} | R Documentation |
Adds labels (at specified heights) to an existing barplot
addlabels.barplot(x, vals, names, min = 0.1, cols = par("fg"), horiz = FALSE, ...)
x |
x positions (may be derived from a call to barplot) |
vals |
heights of labels |
names |
label text |
min |
minimum size for adding labels |
cols |
colors of label text |
horiz |
horizontal barplot |
... |
additional arguments to text() |
none.
Ben Bolker
set.seed(1001) bvals <- matrix(runif(12),nrow=3) b <- barplot(bvals) addlabels.barplot(b,bvals,LETTERS[1:12])