O'Reilly logo

SAS/GRAPH: Beyond the Basics by Robert Allison

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required