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

st: Re: shade btwn xlines

From   Caleb Southworth <>
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:

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