[R] How to assign height value on bar plot?
Jim Lemon
jim at bitwrit.com.au
Sun May 27 07:56:43 CEST 2012
On 05/27/2012 04:30 AM, Manish Gupta wrote:
> My Question is how to write height length on each bar.
>
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
More information about the R-help
mailing list