Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: shade btwn xlines


From   Caleb Southworth <[email protected]>
To   [email protected]
Subject   st: Re: shade btwn xlines
Date   Wed, 26 Oct 2005 13:27:41 -0700 (PDT)

I solved my own question with help from the archives, so I thought I might
as well post a solution:

:In STATA9, how do I shade the area between two xlines?
:tsline DT DTnl, lwidth(medium thick) xline(1905 1921, lpattern(dash))

gen c=30 if year>1904&year<1922
lab var c "competition"
twoway (area c year, bcolor(gs15) base(-20)) (tsline DT DTnl)

Dr. Caleb Southworth, Ph.D
Assistant Professor
Department of Sociology
1291 University of Oregon
Eugene OR 97403
Work: (541) 346-5034
Fax:  (541) 346-5026
*
*   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/



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