Hi Dear;
Please, I would add an average of a second variable in the graph for each country by a dot.
Please, I would add an average of a second variable in the graph for each country by a dot.
Code:
foreach var of varlist rule_law gov_effec gov_exp_health_gdp infant_mortality { local var_title: variable label `var' graph bar (mean) `var', over(com_exp, label(labcolor(maroon) labsize(small))) /// over(country,gap(*.4) label(labcolor(midblue) angle(90) labgap(*1) labsize(tiny)) sort(`var')) asyvars /// scheme(vg_brite) nofill ytitle("{bf: Average `var_title'}", size(vsmall)) /// legend(size(small) nobox region(lcolor(white))) /// title ("{bf: Average `var_title' by Commodity Category over 2000-2016}", size(vsmall)) /// graph export "C:\Users\Perron\Downloads\Clairant\avga_`var'.png", as(png) width(1200) replace }
Comment