I am making histograms using the following command that I want to loop for 122 countries,
Code:
twoway (histogram stunting if Residence==1, color(red%30) disc freq) (histogram stunting if Residence==2, color(green%10) disc freq)
Code:
levelsof country, local(levels) foreach l of local levels{ qui twoway (histogram stunting if Residence==1, color(red%30) disc freq) (histogram stunting if Residence==2, color(green%10) disc freq) local graphnames `country' } graph combine `country', row(4)
It shows the following error:
Code:
. graph combine `graphnames' unrecognized command r(199);
Thank you in advance.
0 Response to Combining graphs from a loop
Post a Comment