![]() I'd also like the vertical line from 0 to be solid black. I managed to change the color of the lines with this code: Code: twoway line clow years, color (edkblue) line cmid years, color (emidblue) line chigh years, color (eltblue) but have not found any option to change the color of the area below each line. Any tips how I can go around doing this?Ģ. I am trying to fill the area below a graph with a certain color. I want to shade the area between the two dashed gray lines in light gray while keeping the line in between those two solid black. Title graph twoway lt Twoway linear prediction plots DescriptionQuick startMenuSyntax OptionsRemarks and examplesAlso see Description twoway lfit calculates the prediction for yvar from a linear regression of yvar on xvar and plots the resulting line. Title(Figure 2: The time-variation in the stock return sensitivity - All 20 MNAs in the sample, size(small) margin(medsmall)) legend(off)The shaded line is the object of interest, while the two dashed grey lines are +/- 2 standard-error bands.ġ. (line lower year, lcolor(gs12) lpattern(dash)), ytitle(Deltas) ylabel(-2(1)4) ytitle(, size(small) margin(medsmall)) yline(1, lpattern(dash) lcolor(gray)) ylabel(, labsize(vsmall) labgap(medsmall)) xtitle(Year) xlabel(2005(1)2016) xtitle(, size(small) margin(medsmall)) xlabel(, labsize(vsmall) labgap(medsmall)) /// Im graphing a time series and shading certain time periods based on a Boolean indicator variable in Stata 13.1 on Windows 7. (line upper year, lcolor(gs12) lpattern(dash)) /// Twoway (line delta30 year, lcolor(black)) /// Input int year float(delta30 timevarsd upper lower)Ģ012 1.2762. Other users who have found the question cross-posted are encouraged to share the links as a reply as well.Code: * Example generated by -dataex. Currently, I can’t figure out how to change the line options > unless I use a scheme, and I haven’t been able to adjust the line options by > groups. For more info see Stata’s reference manual () Schemes are sets of graphical parameters, so you don’t have to specify the look of the graphs every time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |