Hi! I wrote this combined graph with the grc1leg package, but I cannot seem to fix the titles to the left.
Code:
ssc install catplot
net from http://www.stata.com
net cd users
net cd vwiggins
net install grc1leg
graph hbar, over(mt_indicators_1) asyvar percent stack legend(off) yscale(off) yline(20 40 60 80,lwidth(0.25) lcolor(gs11)) saving(t1, replace)yscale(off) plotregion(margin( b+3 t+3)) outergap(30) intensity(30) blabel(bar, bfcolor(black*0.2) position(center) format(%3.1f)) title("Useful", position(9))
graph hbar, over(mt_indicators_2) asyvar percent stack legend(off) yscale(off) yline(20 40 60 80,lwidth(0.25) lcolor(gs11)) saving(t2, replace)yscale(off) plotregion(margin( b+3 t+3)) outergap(30) intensity(30) blabel(bar, bfcolor(black*0.2) position(center) format(%3.1f)) title("Affordable", position(9))
graph hbar, over(mt_indicators_3) asyvar percent stack legend(off) yscale(off) yline(20 40 60 80,lwidth(0.25) lcolor(gs11)) saving(t3, replace)yscale(off) plotregion(margin( b+3 t+3)) outergap(30) intensity(30) blabel(bar, bfcolor(black*0.2) position(center) format(%3.1f)) title(Reliable,position(9))
graph hbar, over(mt_indicators_4) asyvar percent stack legend(off) yscale(off) yline(20 40 60 80,lwidth(0.25) lcolor(gs11)) saving(t4, replace)yscale(off) plotregion(margin( b+3 t+3)) outergap(30) intensity(30) blabel(bar, bfcolor(black*0.2) position(center) format(%3.1f)) title(Can share,position(9))
graph hbar, over(mt_indicators_5) asyvar percent stack legend(off) yscale(off) yline(20 40 60 80,lwidth(0.25) lcolor(gs11)) saving(t5, replace)yscale(off) plotregion(margin( b+3 t+3)) outergap(30) intensity(30) blabel(bar, bfcolor(black*0.2) position(center) format(%3.1f)) title(Safe,position(9))
graph hbar, over(mt_indicators_3) asyvar percent stack legend(span rows(1) label(1 "Strongly disagree") label(2 "Somewhat disagree") label(3 "Neither agree nor disagree") label(4 "Somewhat agree") label(5 "Strongly agree") label(6 "Always") size(vsmall)) yline(20 40 60 80,lwidth(0.25) lcolor(gs11)) saving(t6, replace) plotregion(margin( b+3 t+3)) outergap(30) intensity(30) blabel(bar, bfcolor(black*0.2) position(center) format(%3.1f)) legend(row(3)) ytitle("Percentage of respondents") title(Reduce carbon footprint,position(9))
grc1leg t1.gph t2.gph t3.gph t4.gph t5.gph t6.gph, cols(1) imargin(0 0 0 0) ycommon xcommon legendfrom(t6.gph)

Comment