Dear Stata users,
I want to plot several variables across time by 4 regions. This requires 4 separates graphs, which I need to combine into 1. I use the following code:
The last line of code gives me the following error:
Could you please help me figure out what I am doing wrong?
Thank you
I want to plot several variables across time by 4 regions. This requires 4 separates graphs, which I need to combine into 1. I use the following code:
Code:
foreach var in Midwest West South Northeast { twoway line econm year if region=="`var'" || line socialm year if region=="`var'" /// || line infrstrm year if region=="`var'" || line pubservm year if region=="`var'", /// xlabel(2007 (2) 2017) title("`var'") local graphs "`graphs' `var'" } graph combine `graphs'
Code:
Midwest is not a memory graph r(198);
Thank you
Comment