[R] how to include bar values in a barplot?
Greg.Snow at intermountainmail.org
Tue Aug 7 23:37:50 CEST 2007
Generally adding the numbers to a graph accomplishes 2 things:
1) it acts as an admission that your graph is a failure
2) it converts the graph into a poorly laid out table (with a colorful
and distracting background)
In general it is better to find an appropriate graph that does convey
the information that is intended or if a table is more appropriate, then
replace it with a well laid out table (or both).
Remember that the role of tables is to look up specific values and the
role of graphs is to give a good overview.
The books by William Cleveland and Tufte have a lot of good advice on
Before asking how to get R to produce a graph that looks like one from a
spreadsheet, you should study:
some of the links from there. You may also want to run the following in
In general I like OpenOffice, my one main complaint is that when faced
with the decision between doing something right or the same way as
microsoft, they have not always made the right decision.
Hope this gives you something to think about,
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at intermountainmail.org
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Donatas G.
> Sent: Tuesday, August 07, 2007 1:10 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] how to include bar values in a barplot?
> How do I include bar values in a barplot (or other R
> graphics, where this could be applicable)?
> To make sure I am clear I am attaching a barplot created with
> OpenOffice.org which has barplot values written on top of
> each barplot.
> Donatas Glodenis
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help