Hi to everybody,
I have done for the first time "Box plot by group with data point"
By default, Stata gives me graphs with the same colors. Does anyone know how to change the color of the boxes? I would need 9 different colors (one for Pups_a, one colour for Pups_b ecc)
below the syntax I wrote
twoway rbar lqt med Contesto_num, barw(.5) fcolor(gs12) lcolor(black) || ///
rbar med uqt Contesto_num, barw(.5) fcolor(gs12) lcolor(black) || ///
scatter Complex Contesto_num, graphregion(fcolor(gs15)) mcolor(black) msymbol(Oh) ///
legend(off) xlabel( 1 ".Pups_a" 2 ".Pups_b" 3 ".Pups_c" 4 ".aleF_a" 5 ".aleF_b" 6 ".aleF_c" 7 "FF_a" 8 "FF_b" 9 "FF_a" ) ///
ytitle(Complex score)
Thanks to everybody
Related Posts with change the color of bars -BOXPLOT
inquire foreach listI find that Code: foreach x in Gold Platinum_upgrade Platinum_upgrade_merit { in fact, there is no…
How to split?Dear All, I have this data set, Code: * Example generated by -dataex-. To install: ssc install data…
Interpreting coefficients of a three-level mixed modelDear Stata-listers, I have a three-level mixed model and I am struggling on the specific interpreta…
Gravity Model: reverse causality LEAD variableHi, I am trying to test for potential reverse causality between RTAs using a gravity model. RTA = …
inquire about capture commandI see a data code that starts: Code: clear * capture cd "~/Dropbox/Projects/The Demand for Status/…
Subscribe to:
Post Comments (Atom)
0 Response to change the color of bars -BOXPLOT
Post a Comment