Skip to content
Prev 295751 / 398503 Next

How to assign height value on bar plot?

On 05/27/2012 04:30 AM, Manish Gupta wrote:
Hi Manish,
If don't have stacked bars, it is fairly simple:

barpos<-barplot(height,...)
text(barpos,height,labels=height)

usually with a bit of fooling around with the cex argument. If you want 
each value in a little box, try boxed.labels in plotrix.

Jim