From: "Wright, Gerald C." <[email protected]>
Reply-To: [email protected]
To: <[email protected]>
Subject: RE: st: adding lines to graph
Date: Wed, 21 May 2003 07:57:07 -0500
Scott Merryman's response to Barley Water's question about shading
subregions of a graph suggests a work-around within Stata that produces
something close what Barley wants.
preserve
sysuse gnp96,clear
sum gnp
local max=`r(max)'
gen c=`max' if date>q(1992q1)&date<q(2001q1)
lab var c "Clinton Years"
twoway (area c date, bcolor(gs15)) (line gnp date, clpattern(solid))
restore
Jerry
____________________________
Prof. Gerald C. Wright
Department of Political Science
1100 E. 7th St.
Indiana University
Bloomington, IN 47405
Phone: (812) 855-6308
Fax: (812) 855-2027
____________________________
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
_________________________________________________________________