Try this:
hv <- hist(z, breaks = 30, xaxt='n')
axis(1, hv$breaks )
On 11/03/2008, diegol <[EMAIL PROTECTED]> wrote:
>
> Dear useRs,
>
> Is there a way one can add x-axis values to a histogram? Example:
>
> z = rgamma(n=1000, shape = 8, scale = 1000)
> hist(z, breaks = 30)
>
> Currently I se
project.org
> Subject: [R] Adding x-axis values to a histogram
>
>
> Dear useRs,
>
> Is there a way one can add x-axis values to a histogram? Example:
>
> z = rgamma(n=1000, shape = 8, scale = 1000) hist(z, breaks = 30)
>
> Currently I see 4 x-axis values: 5000, 1000
Dear useRs,
Is there a way one can add x-axis values to a histogram? Example:
z = rgamma(n=1000, shape = 8, scale = 1000)
hist(z, breaks = 30)
Currently I see 4 x-axis values: 5000, 1, 15000, 2. Can I add more
values or modify the ones currently showing? I tried ?hist, yet couldn't
work
3 matches
Mail list logo