Hi there,
I am trying to graph a line graph with shaded recession bars. I have almost managed to achieve this however the bars are slightly bent. Has anyone recommendations on how to make them straight and neat?
Many thanks
I am trying to graph a line graph with shaded recession bars. I have almost managed to achieve this however the bars are slightly bent. Has anyone recommendations on how to make them straight and neat?
Many thanks
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int date byte recession float log_SPF double ECBInflationRate 14304 0 2.3025851 .9 14396 0 2.60269 .9 14488 0 2.747271 1.2 14579 0 2.0412204 1.7 14670 0 4.085976 2 end format %tdnn/dd/CCYY date
Code:
twoway (scatter recession date ,recast(area) bcolor(gs13) cmissing(n) yaxis(9) yscale(off)) (line log_SPF date , ylabel(0(1)10)) (line > ECBInflationRate date , yaxis(2)), ylabel(0(1)4, axis(2)) graphregion(color(white)) bgcolor(white)
Comment