Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Option for repeating graph command


From   "Scott Merryman" <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Option for repeating graph command
Date   Sun, 27 Jul 2008 15:09:44 -0500

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 <philipp.rehm@gmx.de> 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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index