[R] How do I show real values on a log10 histogram
Duncan Murdoch
murdoch.duncan at gmail.com
Tue Mar 26 11:59:46 CET 2013
On 13-03-26 6:19 AM, Shane Carey wrote:
> Hi,
>
> I have a histogram with values logged to the base 10
>
> hist(log10(x),breaks=60)
>
> How do I show the log values on the x-axis and a second x-axis showing the
> real values?
>
I think it's hard to compute nice locations automatically, but if you
compute them yourself, it's easy. Just use something like
ticks <- c(0.1, 1, 10)
axis(side=1, line=2, at=log10(ticks), labels=ticks)
Duncan Murdoch
More information about the R-help
mailing list