I'd also like the vertical line from 0 to be solid black. Any tips how I can go around doing this?Ģ. 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(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)) /// 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. We use Stata graph scheme s2mono, which produces plots in grayscale, because publications. I am trying to fill the area below a graph with a certain color. We will show a number of examples from a data file which contains a measurement of alcohol use, alcuse, taken at ages 14, 15 and 16 for 82 children (identified by the variable id ). (line upper year, lcolor(gs12) lpattern(dash)) /// The xtline command allows you to generate linear plots for panel data. sysuse auto hist mpg, ylabel (, grid glcolor (green)) However, it fails when I try to do the same with coefplot graph where the grid has default blueish color: reg price mpg headroom trunk length turn coefplot, drop (cons) xline (0. The usual method works fine in builtin graphs. Twoway (line delta30 year, lcolor(black)) /// I'm trying to change the color of gridlines in a Stata's graph. Input int year float(delta30 timevarsd upper lower)Ģ012 1.2762.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |