Dear Stata users
I want the value label to be the title of the graph, and I use the following code. Instead of displaying the name of the country(Iso) in the graph it display the numeric value
Any help is appreciated
forvalues i= 1/10 {
graph twoway bar m_stock year if iso==`i', fcolor(teal) yaxis(1) yscale(range(0) axis(1)) /*
*/ || line ex year if iso==`i', sort yaxis(2) yscale(range(0) axis(2)) /*
*/ ytitle("", size(small) margin(small)) yscale(titlegap(*10.4)) /*
*/ ytitle("", axis(2)) /*
*/ xtitle("") /*
*/ xlabel(,labsize(small)) ylabel(,labsize(small))/*
*/xscale( r(1998 2016)) xlab(1998 (4)2016)/*
*/graphregion(color(white))/*
*/ title("`i'") /*
*/legend(off)
graph export "E_vs_m_`i'.pdf", as(pdf) replace
}
*
Thanks
I want the value label to be the title of the graph, and I use the following code. Instead of displaying the name of the country(Iso) in the graph it display the numeric value
Any help is appreciated
forvalues i= 1/10 {
graph twoway bar m_stock year if iso==`i', fcolor(teal) yaxis(1) yscale(range(0) axis(1)) /*
*/ || line ex year if iso==`i', sort yaxis(2) yscale(range(0) axis(2)) /*
*/ ytitle("", size(small) margin(small)) yscale(titlegap(*10.4)) /*
*/ ytitle("", axis(2)) /*
*/ xtitle("") /*
*/ xlabel(,labsize(small)) ylabel(,labsize(small))/*
*/xscale( r(1998 2016)) xlab(1998 (4)2016)/*
*/graphregion(color(white))/*
*/ title("`i'") /*
*/legend(off)
graph export "E_vs_m_`i'.pdf", as(pdf) replace
}
*
Thanks
Comment