Skip to content

quick square root axes

5 messages · Markus Loecher, Duncan Murdoch, Baptiste Auguie +2 more

#
On 5/5/2009 1:05 PM, Markus Loecher wrote:
I don't know of such a thing, but it may well exist.

If you do write your own, the hardest part will be picking the nice tick 
marks.  They should be approximately evenly spaced, but at nice round 
values of the original variable:  that's hard to do in general.  R has 
the pretty() function for the linear scale, and doesn't do too badly on 
log axes, but you'll need to work out your own rules for the sqrt or 
other scales.

Duncan Murdoch
#
On 5 May 2009, at 19:28, Duncan Murdoch wrote:

            
Have you tried ggplot2? I think Hadley has given a lot of thinking on  
this sort of issues.

http://had.co.nz/ggplot2/
http://had.co.nz/ggplot2/coord_trans.html

baptiste
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag
#
This seems like a nice (if smallish) research problem...

Hadley
#
Markus Loecher wrote:
Hi Markus,
The axis.mult function in plotrix does this for linear multipliers, but 
a more general transformation is a bit harder. I'll have a look at the 
log axis transformation and scratch my head a bit.

Jim