[R] log x-axis lables on a histogram
Rui Barradas
ruipbarradas at sapo.pt
Wed Apr 10 16:34:27 CEST 2013
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 the x-axis as log vaules? so lets say: 0.01,
> 0.1,0,1,10,100 and so on.
>
> Thanks
>
More information about the R-help
mailing list