Skip to content
Prev 70638 / 398528 Next

values of bars in barplot

luc tardieu wrote:
something like:


x <- 1:3
#ensure some free space above the bar and remember midpoints:
bmp <- barplot(x, ylim = c(0, 1.1*max(x)))

text(bmp, x + .03*max(x), x)


should do.