Yup, that did the trick.

Thanks a mil


On Thu, Apr 4, 2013 at 12:10 PM, Rui Barradas <ruipbarra...@sapo.pt> wrote:

> Hello,
>
> Try the following.
>
>
> h <- hist(rnorm(100), xaxt = "n")
> axis(1, at = h$breaks)
>
>
> Hope this helps,
>
> Rui Barradas
>
> Em 04-04-2013 11:44, Shane Carey escreveu:
>
>  Hi,
>>
>> I would like to places x-axis labels at the edge of bins on a histogram,
>> i.e. the min value at first bin edge (left hand side) and max at the last
>> bin edge (right hand side).
>> As it stands, it places the values in the centre of each bin.
>>
>> Thanks
>>
>>
>>
>>


-- 
Shane

        [[alternative HTML version deleted]]

______________________________________________
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