Hey there,
I am trying to produce a graph that gives an indication of how two variables changes over time. One of the variables is recorded monthly (var_mm) and the other is recorded yearly (var_yy). I have a time-variable, date, on the x-axis. It is in the %d format (e.g. 21dec1994). I have a dummy variable, dummy, that is equal to either 1 or 0 for each month of date.
At the moment, I'm doing my basic graph as:
I would like to plot a line graph of var_mm and var_yy on date, but have vertical grey bars to indicate periods where dummy is equal to 1. Is this possible?
Thanks
I am trying to produce a graph that gives an indication of how two variables changes over time. One of the variables is recorded monthly (var_mm) and the other is recorded yearly (var_yy). I have a time-variable, date, on the x-axis. It is in the %d format (e.g. 21dec1994). I have a dummy variable, dummy, that is equal to either 1 or 0 for each month of date.
At the moment, I'm doing my basic graph as:
Code:
graph twoway (line var_mm var_yy date),
Thanks
Comment