Click here to see the SAS code.
Click here to see the example.

---------------------------------------------------------------

A typical/default SAS county map just shows the county borders.

But it is useful to add the state borders so that people
can more easily recognize the areas in the map.

This can be accomplished using Proc Gremove to remove the 
internal county boundaries within the states, and then 
using annotate to interconnect the remaining points 
(which happen to the the state boundaries).

proc gremove data=my_map out=anno_outline;
by state;
id county;
run;
data anno_outline; set anno_outline;
by state segment notsorted;
length function $8 color $8;
color='white'; style='mempty'; when='a'; xsys='2'; ysys='2';
if first.SEGMENT then FUNCTION='Poly';
else function='Polycont';
run;


Back to Samples Index