[R] add absolute value to bars in barplot

soeren.vogel at eawag.ch soeren.vogel at eawag.ch
Fri Feb 27 13:32:45 CET 2009


Hello,

r-help at r-project.orgbarplot(twcons.area,
   beside=T, col=c("green4", "blue", "red3", "gray"),
   xlab="estate",
   ylab="number of persons", ylim=c(0, 110),
   legend.text=c("treated", "mix", "untreated", "NA"))

produces a barplot very fine. In addition, I'd like to get the bars'  
absolute values on the top of the bars. How can I produce this in an  
easy way?

Thanks

Sören




More information about the R-help mailing list