Statalist


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

Re: st: Option for repeating graph command


From   Philipp Rehm <[email protected]>
To   [email protected]
Subject   Re: st: Option for repeating graph command
Date   Sun, 27 Jul 2008 23:03:15 +0200

.
Ah, wonderful.
Thanks for the solution. Much appreciated.
Best,
Philipp

Scott Merryman wrote:
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/

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index