Re: [R] ploting labels on barplot

2007-10-28 Thread Jim Lemon
Bernd Jagla wrote: > Again me. > > > > I want to plot the numbers on the bars of a barplot. > > This can be done using hist function when setting the label argument true > (i.e. > > > > data <- c(1,2,3,4) > > hist(data, labels=T) > > > > When I try this using barplot I get an error

Re: [R] ploting labels on barplot

2007-10-26 Thread hadley wickham
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

Re: [R] ploting labels on barplot

2007-10-25 Thread Henrique Dallazuanna
Perhaps: x <- barplot(data, ylim=c(0, max(data)+1)) text(x,data+.2, data) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 25/10/2007, Bernd Jagla <[EMAIL PROTECTED]> wrote: > > Again me. > > > > I want to plot the numbers on the bars of a barplot. > > This can be

[R] ploting labels on barplot

2007-10-25 Thread Bernd Jagla
Again me. I want to plot the numbers on the bars of a barplot. This can be done using hist function when setting the label argument true (i.e. data <- c(1,2,3,4) hist(data, labels=T) When I try this using barplot I get an error: > barplot(summary(data), labels=T) Error in