Dear Statalist,
I am trying to combine towway graph , all these graph sharing the same y axis
but when i combine it's still give 3 y-axis, i just want one y-axis, i am using ycommon but still have
each graph have y-axis , i just want one y-axis. I am using example data.
I install dataex in my stata 14.1 version but when i copy and past i did not have gray box.
Thanks a lot
code:
use http://www.ats.ucla.edu/stat/stata/webbooks/reg/elemapi
pwcorr api00 ell, sig
graph twoway (lfitci api00 ell) ///
(scatter api00 ell) ///
, ytitle("api00") ///
legend(region(lwidth(none)) ring(0) pos(5) order(2 "linear fit" 1 "95% CI")) ///
text(900 60 "corr=-0.76" "p-value=0.00",size(small))
graph save "api00_ell.gph", replace
pwcorr api00 meals, sig
graph twoway (lfitci api00 meals) ///
(scatter api00 meals) ///
, ytitle("api00") ///
legend(region(lwidth(none)) ring(0) pos(5) order(2 "linear fit" 1 "95% CI")) ///
text(900 80 "corr=-0.82" "p-value=0.00",size(small))
graph save "api00_meals.gph", replace
pwcorr api00 mobility, sig
graph twoway (lfitci api00 mobility) ///
(scatter api00 mobility) ///
, ytitle("api00") ///
legend(region(lwidth(none)) ring(0) pos(5) order(2 "linear fit" 1 "95% CI")) ///
text(900 40 "corr=-0.21" "p-value=0.00",size(small))
graph save "api00_mobility.gph", replace
graph combine api00_ell.gph api00_meals.gph api00_mobility.gph, ///
ycommon col(3) ///
graphregion(color(white))
I am trying to combine towway graph , all these graph sharing the same y axis
but when i combine it's still give 3 y-axis, i just want one y-axis, i am using ycommon but still have
each graph have y-axis , i just want one y-axis. I am using example data.
I install dataex in my stata 14.1 version but when i copy and past i did not have gray box.
Thanks a lot
code:
use http://www.ats.ucla.edu/stat/stata/webbooks/reg/elemapi
pwcorr api00 ell, sig
graph twoway (lfitci api00 ell) ///
(scatter api00 ell) ///
, ytitle("api00") ///
legend(region(lwidth(none)) ring(0) pos(5) order(2 "linear fit" 1 "95% CI")) ///
text(900 60 "corr=-0.76" "p-value=0.00",size(small))
graph save "api00_ell.gph", replace
pwcorr api00 meals, sig
graph twoway (lfitci api00 meals) ///
(scatter api00 meals) ///
, ytitle("api00") ///
legend(region(lwidth(none)) ring(0) pos(5) order(2 "linear fit" 1 "95% CI")) ///
text(900 80 "corr=-0.82" "p-value=0.00",size(small))
graph save "api00_meals.gph", replace
pwcorr api00 mobility, sig
graph twoway (lfitci api00 mobility) ///
(scatter api00 mobility) ///
, ytitle("api00") ///
legend(region(lwidth(none)) ring(0) pos(5) order(2 "linear fit" 1 "95% CI")) ///
text(900 40 "corr=-0.21" "p-value=0.00",size(small))
graph save "api00_mobility.gph", replace
graph combine api00_ell.gph api00_meals.gph api00_mobility.gph, ///
ycommon col(3) ///
graphregion(color(white))
Comment