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
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
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
3 matches
Mail list logo