Add -yrescale- option to the -by()- statement:
-tw (connected price weight, sort), by(foreign, yrescale)-
See -help by option-
Scott
On Sun, Jul 27, 2008 at 12:46 PM, Philipp Rehm <[email protected]> wrote:
>
> .
> Is there a way to ask Stata to use different y-scales when using a graph command (such as -twoway-) with the by-option?
>
> Example:
> sysuse auto, clear
> replace price=100*price if foreign==1
> tw (connected price weight, sort), by(foreign)
>
> I'd rather have the y-axis on different scales. At this point, I use -graph combine-. Something like:
*
* 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/