Hi,
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)
and then merge them using this, but it is not working. Can you please help detect the error in this approach:

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.