Re: [R] log x-axis lables on a histogram

2013-04-10 Thread Shane Carey
Yup, that worked. Thats great. Thanks On Wed, Apr 10, 2013 at 3:34 PM, Rui Barradas wrote: > Hello, > > Try > > > h <- hist(log10(rnorm(0:1000)), xaxt = "n") > axis(1, at = pretty(h$breaks), labels = 10^pretty(h$breaks)) > > > Hope this helps, > > Rui Barradas > > Em 10-04-2013 14:25, Shane Car

Re: [R] log x-axis lables on a histogram

2013-04-10 Thread Rui Barradas
Hello, Try h <- hist(log10(rnorm(0:1000)), xaxt = "n") axis(1, at = pretty(h$breaks), labels = 10^pretty(h$breaks)) Hope this helps, Rui Barradas Em 10-04-2013 14:25, Shane Carey escreveu: Hi, If you have the following lets say: hist(log10(rnorm(0:1000))) How do you show the labels on t

[R] log x-axis lables on a histogram

2013-04-10 Thread Shane Carey
Hi, If you have the following lets say: hist(log10(rnorm(0:1000))) How do you show the labels on the x-axis as log vaules? so lets say: 0.01, 0.1,0,1,10,100 and so on. Thanks -- Shane [[alternative HTML version deleted]] __ R-help@r-projec