Statalist The Stata Listserver


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

RE: st: RE: time series plot with shaded bands


From   "MA V" <[email protected]>
To   [email protected]
Subject   RE: st: RE: time series plot with shaded bands
Date   Thu, 29 Mar 2007 20:21:24 +0000

I tried your suggestion but it does not seem to work...most likely I'm doing something wrong.
I have the following toy dataset:
+------------+
| year qty |
|------------|
1. | 1997 23 |
2. | 1998 28 |
3. | 1999 35 |
4. | 2000 15 |
+------------+

and I want the shaded bands to go from feb97 to dec97 and feb1999 to july1999.

Any help is appreciated.
Thankd,
MA



From: "Maarten Buis" <[email protected]>
Reply-To: [email protected]
To: <[email protected]>
Subject: RE: st: RE: time series plot with shaded bands
Date: Thu, 29 Mar 2007 21:53:39 +0200

--- MA V wrote:
> My data is annual but I would like to specify quarterly ranges for the
> shaded bands.
> i.e. I want the time series plot to "connect the dots" for yearly
> observations but I want to specify a range that goes from Jan to March in a
> given year, for example.

Say you want that band in 2006, than within the -twoway function- command
use the option range(2006 2006.25)

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/
_________________________________________________________________
Interest Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18466&moid=7581

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