[R] label each bar by value

2008-03-13 Thread Aimin Yan
I want to label each bar on the top of bars when using barplot. anyone know how to do this? thanks __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] label each bar by value

2008-03-13 Thread John Kane
?text tmp - c(34,22,77) tmp.labels - c(cat, dog, sheep) tmp2 - barplot(tmp, ylim=c(0, max(tmp)+10)) text(1:3, tmp+2 , labels=tmp.labels) --- Aimin Yan [EMAIL PROTECTED] wrote: I want to label each bar on the top of bars when using barplot. anyone know how to do this? thanks

Re: [R] label each bar by value

2008-03-13 Thread Greg Snow
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aimin Yan Sent: Thursday, March 13, 2008 11:10 AM To: r-help@r-project.org Subject: [R] label each bar by value I want to label each bar on the top of bars when using barplot. anyone know how to do