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" <>
To   <>
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 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

*   For searches and help try:

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