Re: [R] label each bar by value

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Thu, 13 Mar 2008 11:44:35 -0600

There was a discussion on this a while back, see: http://tolstoy.newcastle.edu.au/R/e2/help/07/08/22858.html

There is some good discussion there on why you may not want to do this (adding the numbers at the tops of bars tends to distort the visual comparison of heights, among other things). If you follow the thread for a while and think about what you really want to do, there are some examples of alternative ways to accomplish what you probably really want to do.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow_at_imail.org
(801) 408-8111
 
 


> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Aimin Yan
> Sent: Thursday, March 13, 2008 11:10 AM
> To: r-help_at_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 this?
>
> thanks
>
> ______________________________________________
> R-help_at_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.
>
______________________________________________ R-help_at_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.
Received on Thu 13 Mar 2008 - 17:47:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 13 Mar 2008 - 18:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive