Hi all,
I am trying to construct twoway graphs using the "yscale(range())"
option to extend the range covered by the y-axis (both at the lower and
upper ends). My outcome variable only takes negative values and it seems
that range() works as it is supposed to at the lower, but not at the
upper end, at least as long as the upper end takes a negative value.
The following example illustrates the problem (in particular the second
graph):
version 12.1
sysuse auto, clear
scatter turn foreign, yscale(range(10 80))
gen minturn=-turn
scatter minturn foreign, yscale(range(-80 -10))
scatter minturn foreign, yscale(range(-80 5))
Is this a bug?
Many thanks,
Jan
--
Dipl.-Soz. Jan Paul Heisig
Wissenschaftszentrum Berlin für Sozialforschung
Abteilung Ungleichheit und soziale Integration
Reichpietschufer 50
10785 Berlin
Tel.: +49-30-25491-383
*
* 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/