From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | Re: st: logarithmic scales |
Date | Thu, 27 Nov 2003 18:21:17 +0000 |
At 16:04 27/11/03 +0000, Nick Cox wrote:
Here's a small issue which is utterly elementary, but it may provide a moment's bemusement, and I'd welcome any comments. When drawing graphs with one or both axes on a logarithmic scale, Stata by default tries to provide "nice" labels, just as usual. I'm writing a graphics program for a kind of plot in which one axis will _always_ show a logarithmic scale, yet I find that Stata's default for labels often gives me what is both a very sensible and a very poor answer. The fault is possibly as much mine as Stata's, as I may be quirky in what I most often want. Also, despite years of acquaintance, Stata can't know what I want unless I tell it.
. . .
I too have had a similar experience to Nick's, while writing my own -smileplot- package (downloadable from SSC). My personal custom is to use my own -explist- package (downloadable from SSC and modelled broadly on Nick Cox's -listutil- suite) to define an exponentially spaced list of numbers, with a logarithmic base defined by the -base()- option and a scale defined by the -scale()- option. -explist- takes, as input, a list of numbers x_1, ... , x_n, and creates, as output, a list of numbers y_1, ... , y_n, derived exponentially from the input list, so that, for each i,Any views on this, including reports on tribal attitudes or customs?
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |