Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: graph axis variable scale
From
Maarten Buis <[email protected]>
To
[email protected]
Subject
Re: st: graph axis variable scale
Date
Fri, 8 Nov 2013 13:16:11 +0100
On Fri, Nov 8, 2013 at 12:58 PM, Maria Sokolova wrote:
> I am trying to get a graph with a variable scale. Say, both y-axis and
> x-axis are 0 to 1. Most of the action is in the range of 0 to 0.5, but
> I do not want to limit the graph with the range(0 0.5) option. I want
> rescale the graph so, that it if you get "even" distance on x-axis
> between 0 0.001 0.01 0.1 0.2 0.3 0.5 1.
The .001 .01 .1 part would be a logarithmic. One option would be to
just use the logarithimic scale for the entire x-axis, i.e. add the
option -xscale(log)-. This may not work when you have exact 0s. In
that case you can either rethink those exact 0s or use the tricks in
this Stata tip: Nicholas J. Cox (2008) "Stata tip 59: Plotting on any
transformed scale" The Stata Journal, 8(1): 142-145.
http://www.stata-journal.com/article.html?article=gr0032
Hope this helps,
Maarten
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany
http://www.maartenbuis.nl
---------------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/