Stata here as elsewhere applies the principle that a graph should be
honest about your data. Equivalently, it does not want to make it easy
for you to omit data from a graph by accident. Thus if you want to omit
data on purpose you should do on purpose by applying -if-.
An alternative might be to use a log scale.
Nick
[email protected]
Mak, Timothy
Thanks for the article. However, as the article says, Stata determines
the minimum range of the graph according to the range of the data. It
remains impossible to set the range of the graph to be smaller than that
of the data.
Martin Weiss
Try http://www.stata-journal.com/sjpdf.html?articlenum=gr0019
Mak, Timothy
Is there any reason why Stata won't let you draw a graph whose y-axis'
range is less than the actual range of the data? Is there a way to get
round this?
The motivation comes from doing a graph where there is one group which
has a articularly large y value. If I graph it with the other groups,
then all the other groups will be very small, and their relative heights
not very distinguishable. If I can focus on the other groups and let the
outlying group 'goes off the scale', that's clearly quite a good device
to have. In fact, the problem can't be overcome even if I artificially
set the outlying y value to the maximum of the y range, because the top
will look different, particularly when I want to graph error intervals.
*
* 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/