Dear Stata users,
Is it possible to have the same color for 95 CI in all groups? I am using the following code:
twoway (scatter coef species if (species==1 & country==1), msymbol(S) msize(medium) mcolor(red) ) ///
(rcap ci_up ci_low species if (species==1 & country==1)) ///
(scatter coef species if (species>1 & species<4 & country==1), msymbol(S) msize(medium) mcolor(red) ) ///
(rcap ci_up ci_low species if (species>1 & species<4 & country==1)) (line coef species if (species>1 & species<4 & country==1), lwidth(thick) lcolor(navy) connect(direct)) ///
(scatter coef species if (species>3 & species<7 & country==1), msymbol(S) msize(medium) mcolor(red) ) ///
(rcap ci_up ci_low species if (species>3 & species<7 & country==1)) (line coef species if (species>3 & species<7 & country==1), lwidth(thick) lcolor(navy) connect(direct)), ///
xlabel( 1 "2 conif" 2 "1 broad" 3 "2 broad" 4 "2 mix" 5 "3 mix" 6 "3 mix" ) ///
ytitle(km) yline(0, lpattern(dash) lc(black)) legend(off)
I can restrict the color of lines and markers to be the same in all groups but the colors of 95 CIs change across groups. Is there a way to have them the same in all groups? I've attached the graph that I get.
Thank you
Related Posts with Color of Confidence Intervals
testparm vs. contrastDear Listers, I am looking into the difference between testparm and contrast following a regression…
Managing string variablesHi STATALIST, Could you please advice me how I can produce var3 from var2: var1 is group IDs. Cod…
Wald test or any related for regression with interaction termHi all, After reading many many topics I have a question on the possibilities of any test to check …
Getting column names when using Python in StataI am learning how to use the -sfi.Data- class when using Python in Stata. When I import the dataset …
Multiple imputation, miHello, I am trying to impute all missing values including covariates and outcomes at 3 months of fo…
Subscribe to:
Post Comments (Atom)
0 Response to Color of Confidence Intervals
Post a Comment