Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.61.0509151200170.2700@tahawus.Princeton.EDU>
Date: 2005-09-15T16:02:20Z
From: Jonathan Dushoff
Subject: Log scale in histograms
In-Reply-To: <Pine.LNX.4.61.0509142237080.2700@tahawus.Princeton.EDU>

> Can't find any information about this, but others must want to do it.

> In the example below, the second plot has the desired log scale,
> but the first does not.

> Any help appreciated.

Well, I had to solve this problem myself.  I hope that doesn't prove I
should have posted it.  I did spend a lot of time on it, both before and
after posting.

Here is a reasonable-looking histogram based on logged data:

hist(log10(area_Mh), 12, xlab="Area (Mh)", main="", axes=FALSE)
axis(1, labels=formatC(10^(axTicks(1)), digits=3))
axis(2)

JD