Note that putting numbers near the top of the bars (either inside or outside) 
tends to create 'fuzzy' tops to the bars that make it harder for the viewer to 
quickly interpret the graph.  If the numbers are important, put them in a 
table.  If you really need to have the numbers and graph together then look at 
alternatives (some type of combined table/graph) or put the numbers in a margin 
of the graph where they will not distract from the graph itself.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of soeren.vo...@eawag.ch
> Sent: Friday, February 27, 2009 5:33 AM
> To: r-help@r-project.org
> Subject: [R] add absolute value to bars in barplot
> 
> Hello,
> 
> r-h...@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
> 
> ______________________________________________
> 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.

______________________________________________
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