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:[EMAIL PROTECTED]
|Sent: Friday, October 26, 2007 11:47 AM
|To: Bernd Jagla
|Cc: r-help@r-project.org
|Subject: Re: [R] ploting labels on barplot
|
|On 10/25/07, Bernd Jagla <[EMAIL PROTECTED]> 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/

______________________________________________
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