Statalist The Stata Listserver


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

st: RE: time series plot with shaded bands


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: time series plot with shaded bands
Date   Thu, 29 Mar 2007 19:20:31 +0200

--- MA V wrote:
> I want to add a shaded band from 28nov2002 to 25dec2002 instead of two
> individual lines. How can I achieve that? 

twoway rarea upperbound lowerbound day

> And what if I want to add several
> shaded bands for different time periods?

twoway rarea upperbound1 lowerbound1 day1 || /*
    */ rarea upperbound2 lowerbound2 day2
 
Where upperbound, upperbound1 upperbound2 lowerbound lowerbound1
lowerbound2 day day1 and day2 are variable names.

Hope this helps,
Maarten


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



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