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
______________________________________________
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.