[R] how to include bar values in a barplot?

Frank E Harrell Jr f.harrell at vanderbilt.edu
Tue Aug 7 21:24:59 CEST 2007


Donatas G. wrote:
> 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. 
> 

This causes an optical illusion in which the viewer adds some of the 
heights of the numbers to the heights of the bars.  And in general dot 
charts are greatly preferred to bar plots, not the least because of 
their reduced ink:information ratio.

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list