Background shading of time series and other plots is a common need. For example, we often wish to identify particular periods of recession or war or other distinct conditions. The shading should be laid down before the data elements (for example, data points or lines). Several methods of shading can be effective. Tips are included for automating the production of a series of similar graphs.
BaumC. F.2006. nbercycles: Stata module to generate graph command (and optionally graph) timeseries vs. NBER recession dating. Statistical Software Components S456746, Department of Economics, Boston College. https://ideas.repec.org/c/boc/bocode/s456746.html.
2.
BrewerC. A.2015. Designing Better Maps: A Guide for GIS Users. 2nd ed. Redlands, CA: ESRI Press.
3.
CoxN. J.2003. Stata tip 2: Building with floors and ceilings. Stata Journal3: 446–447.
4.
CoxN. J.2006. Stata tip 39: In a list or out? In a range or out?Stata Journal6: 593–595.
5.
CoxN. J.2009a. Stata tip 78: Going gray gracefully: Highlighting subsets and downplaying substrates. Stata Journal9: 499–503.
6.
CoxN. J.2009b. Stata tip 82: Grounds for grids on graphs. Stata Journal9: 648–651.
7.
HardinJ. W.1995. dm28: Calculate nice numbers for labeling or drawing grid lines. Stata Technical Bulletin25: 2–3. Reprinted in Stata Technical Bulletin Reprints, vol. 5, pp. 19–20. College Station, TX: Stata Press.
8.
HeckbertP. S.1990. Nice numbers for graph labels. In Graphics Gems, ed. GlassnerA. S., 61–63. Cambridge, MA: Academic Press.
9.
PisatiM.2004. Simple thematic mapping. Stata Journal4: 361–378.