Statalist


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

Re: st: twoway line and shaded areas


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: twoway line and shaded areas
Date   Wed, 10 Oct 2007 10:38:31 -0400

Sure. Try e.g.

sysuse sp500, clear
egen l=min(low)
egen h=max(high)
tw rarea l h date if inrange(date,15229,15242) || line close date

On 10/10/07, Nadine Kalwey <nadine.kalwey@uni-koeln.de> wrote:
> Dear users,
>
> I created a graph with the command "twoway line". Now I would like to
> emphasize a specific date, lets say 1997m6 to 1998m12. Does anybody know if
> it's possible to have a shaded area within a line graph? And how does this
> work?
>
> Thanks for ur help!
>
> Kind regards
> Nadine
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index