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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to