I'm trying to produce a twoway graph, plotting size effect as bar and adding confidence interval. Everything run smooth, except when I'm trying to change bar's color to distinguish the different treatment. See code example below:
Code:
graph twoway bar T1_C trt, text(.06 .05 "Control" , place(c)) /// text(.36 1.05 "Civ. Ed.", place(c)) /// text(.22 2.05 "Sec." , place(c)) /// text(.45 3.05 "Combined", place(c)) /// bargap(1) barwidth(0.40) legend(off) color(grey%30) lcolor(%30) lcolor(black) /// title("Civic Participation", box fcolor(white)) xlabel(,nolabels) /// xtitle("Treatment") ytitle("Index Civic Participation") /// subtitle(" ") graphregion(color(white)) plotregion(color(white)) /// || /// rcap T1_C1 T1_C2 trt, vertical
Code:
bar(1,color(green)) bar(2,color(red))bar(3,color(blue))bar(4,color(orange))
Many thanks in advance,
0 Response to Multitple color graph bar
Post a Comment