[R] plotting labels on barplot

Bernd Jagla baj2107 at columbia.edu
Fri Oct 26 18:47:05 CEST 2007


I am using the following construct and so far I am OK with it...

b<-barplot(data, ylim=c(0, max(data)+max(data)/20))
text(b,data+max(data)/30, data)

Thanks, for the comments.

-B

|-----Original Message-----
|From: hadley wickham [mailto:h.wickham at gmail.com]
|Sent: Friday, October 26, 2007 11:47 AM
|To: Bernd Jagla
|Cc: r-help at r-project.org
|Subject: Re: [R] ploting labels on barplot
|
|On 10/25/07, Bernd Jagla <baj2107 at columbia.edu> wrote:
|> Again me.
|>
|>
|>
|> I want to plot the numbers on the bars of a barplot.
|
|This is usually a bad idea, as the size of the numbers will distort
|the shape of the bars, worsening perceptual accuracy.  Do you want a
|table or a graph?
|
|Hadley
|
|
|--
|http://had.co.nz/



More information about the R-help mailing list