Re: [R] Adding x-axis values to a histogram

2008-03-11 Thread Henrique Dallazuanna
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

Re: [R] Adding x-axis values to a histogram

2008-03-11 Thread Peter Alspach
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

[R] Adding x-axis values to a histogram

2008-03-11 Thread diegol
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