Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: re: breaks in linear plots


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: re: breaks in linear plots
Date   Thu, 12 Feb 2009 14:00:15 -0000

If that's what is wanted, note that -separate- was written partly to
support this kind of thing directly. 

sysuse nlsw88.dta,clear
separate wage, by(south) 

etc. 

The advantage is greater with several groups, rather than two. 

Nick 
[email protected] 

Kit Baum

I don't think May is trying to get a break in the axis, but rather in  
the plotted line. Something like this, maybe?

. sysuse nlsw88.dta,clear
(NLSW, 1988 extract)

. g wagenorth = wage if !south
(942 missing values generated)

. g wagesouth = wage if south
(1304 missing values generated)

. collapse wagenorth wagesouth,by(age)

. twoway line wagenorth age if age<=40  || line wagesouth age if age>=40


*
*   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