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
Options to plot yearly data for five years in a single graphHi All. I'd like to plot two different graphs using the same data. (1) yearly data over five waves…
Question on merge results not consistentHi Statalist community, I am trying to merge, but every time I run it using the same do.file I get …
GMM with binary outputDear, I am doing gmm for a system including 3 equations. In which, dependent variable of one equati…
there is somthing wrong when use tuples commandthe conditions are set: tuples ,cond(!(1&2) !(3&4) !(5&6) !(7&8) (!(9&10)&!(…
How to interpret results when dependent variable takes first differenceI am currently attempting to find the impact FDI (net inflows) has on the unemployment rate in count…
Subscribe to:
Post Comments (Atom)
0 Response to Color of Confidence Intervals
Post a Comment