Hi Everyone,
I would like to ask an unusual question. I need to change the color to Stata bars using graph bar, but in a different ways that what all other posts have asks. What I need is changing the colors of selected bars, despite the over options I use. Here's my command:
graph bar frac_, over(v1, sort(n) label(angle(45) labsize(small))) over(ind, sort(v2)) nofill ///
bar(1, fcolor(ebblue%70) fintensity(inten100) lcolor(ebblue%70) lwidth(vthin)) bar(2, fcolor(ebblue%70) fintensity(inten100) lcolor(ebblue%70) lwidth(vthin))///
plotregion(lcolor(white)) ytitle("Percentage", size(3)) blabel(bar, format(%9.1f) color(black)) graphregion(color(white))
The option asyvars doesn't work because it changes all the labels and remove the order I would like to use.
Thanks a lot,
Josh
I would like to ask an unusual question. I need to change the color to Stata bars using graph bar, but in a different ways that what all other posts have asks. What I need is changing the colors of selected bars, despite the over options I use. Here's my command:
graph bar frac_, over(v1, sort(n) label(angle(45) labsize(small))) over(ind, sort(v2)) nofill ///
bar(1, fcolor(ebblue%70) fintensity(inten100) lcolor(ebblue%70) lwidth(vthin)) bar(2, fcolor(ebblue%70) fintensity(inten100) lcolor(ebblue%70) lwidth(vthin))///
plotregion(lcolor(white)) ytitle("Percentage", size(3)) blabel(bar, format(%9.1f) color(black)) graphregion(color(white))
The option asyvars doesn't work because it changes all the labels and remove the order I would like to use.
Thanks a lot,
Josh
Comment