RATS 10.1
RATS 10.1

Graphics /

Highlighting Entries

Home Page

← Previous Next →

The options GRID and SHADING permit you to draw attention to particular entries. GRID does this by drawing a vertical line from top to bottom of the graph at specific entries. SHADING paints a shaded box over any set of consecutive non-zero entries.

 

Shading or grid lines are done before any of the series. If the graph uses one of the painted styles (POLYGONAL, BAR, STACKED or OVERLAP), it may cover the highlighting, so be careful if you want to use those.

 

You might find that you need to darken the shading for publication. To do that, redefine FILL_BW_0. The default value is .90; if that’s too light, you might try .85.

 

SCATTER and GCONTOUR have separate options for grids or shading in each direction. Note that, unlike GRAPH, where the highlighting information is provided in data series, for SCATTER the grid lines are provided using a VECTOR in the HGRID and VGRID options and the shading zones are in a \(\text(zones) \times 2\) RECTANGULAR for HSHADE and VSHADE.

 

set raterise = (t>=1973:8.and.t<=1974:12).or.(t>=1978:3.and.t<=1981:11)

graph(shading=raterise,header="U.S. Private Housing Starts",$

  subheader="With Rising Mortgage Rate Intervals") 1

# hsf 1972:1 1987:12

 

is from GRAPHOVERLAY.RPF. It puts shading over 1973:8 to 1974:12 and 1978:3 to 1981:11.

 

 

 

This is from ONEBREAK.RPF. It puts a vertical line at the location with the most extreme breakpoint statistic (when T is equal to BESTBREAK).

 

graph(grid=(t==bestbreak),header="Robust F-Statistics for Breakpoints")

# fstat

 


Copyright © 2025 Thomas A. Doan