Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Maarten Buis <maartenlbuis@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Zoom in on subsets of data |
Date | Tue, 3 Jul 2012 10:02:44 +0200 |
On Mon, Jul 2, 2012 at 9:34 PM, Sharooon wrote: > I have a graph of a line where a portion of the line takes on very high y values. This makes it difficult when I graph it to see what other patterns are going on since everything else looks like a straight line. Is there an easy way to zoom into the graph to only show say y-values lower than 2,000? Using a log scale as proposed by Tashi is good advise. Alternatively, you can just cut-off the axis by using the if condition: *---------- begin example ---------- sysuse auto // entire graph scatter price mpg // cut off price at 10,000 dollar scatter price mpg if price < 1e4 // ( I don't want type all the // zeros and (mis)count them, // so I use 1e4 which means a // 1 with 4 zeros ) *------------ end example ----------- (For more on examples I sent to the Statalist see: http://www.maartenbuis.nl/example_faq ) Hope this helps, Maarten -------------------------- Maarten L. Buis Institut fuer Soziologie Universitaet Tuebingen Wilhelmstrasse 36 72074 Tuebingen Germany http://www.maartenbuis.nl -------------------------- * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/