EXAMPLE 5  Customizing a Map

Purpose: Describe how to combine areas of a map, and label areas on the map.

Two topics that frequently come up are customizing map borders and labeling map areas. This example provides some very useful (and re-usable) techniques for both of those tasks.

Maps of most countries are included in your SAS/GRAPH installation. There is generally only one map per country, and it shows the most granular (smallest) areas available for each country. For example, maps.germany has about 400 areas, if you plot the map as is:

proc gmap map=maps.germany data=maps.germany;
 id id;
 choro id / levels=1 nolegend coutline=gray55;
run;

But what if you do not want a map at the most-granular level? What if, for example, you want ...

Get SAS/GRAPH: Beyond the Basics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.