I want to be able to replicate the following plot.
where on x axis I have time and y axis I have the GDP. The GDP line is simply a daily time history (no matter its values), while the recession data have the following structure (the two variables CGD and Recession share the same daily frequency from 1/1/59 until today):
Date Regime
1 1/1/59 Normal
2 2/1/59 Normal
3 3/1/59 Normal
4 4/1/59 Normal
5 5/1/59 Normal
6 6/1/59 Normal
...
14 2/1/60 Normal
15 3/1/60 Normal
16 4/1/60 Recession
17 5/1/60 Recession
18 6/1/60 Recession
19 7/1/60 Recession
20 8/1/60 Recession
21 9/1/60 Recession
22 10/1/60 Recession
23 11/1/60 Recession
24 12/1/60 Recession
25 1/1/61 Recession
26 2/1/61 Normal
27 3/1/61 Normal
only the recession part has to be plotted with that light shade.
Can anybody help?
Thanks. Luigi