Dear all, I hope this works without adding a dataset.
Basically I have a tw scatter graph with three lines, having different coefficient values on the y axis and a time period with different years on the x axis. I use the following command to plot my code after running the regressions:
As you see, I indicated orange to be the color of the confidence intervals. My problem is that the three lines now have three different colors (which is what I want) but all confidence intervals are orange. How can I recode it, so that each confidence interval has the same color as the respective line?
Basically I have a tw scatter graph with three lines, having different coefficient values on the y axis and a time period with different years on the x axis. I use the following command to plot my code after running the regressions:
Code:
tw (rcap min95 max95 year, acolor("orange")) (scatter estimate_1 year, m(o) c(l) color(green)) /// (scatter estimate_2 year, m(o) c(l) color(navy)) /// (scatter estimate_3 year, m(o) c(l) color(red), /// yline(0, lcolor(black) lpattern(dash)) ytitle(Coefficient) /// xtitle(Year) xlab(2008(1)2014) graphregion(color(white)) /// legend( order(2 "x" 3 "y" 4 "z") rows(1)) xline(2010, lcolor(black) lpattern(dash))
Comment