Previous Page | Next Page

The GMAP Procedure

Example 5: Producing a Simple Choropleth Map


Procedure features:

ID statement

CHORO statement option:

CDEFAULT=

Sample library member: GMPCHORO

[Producing a Simple Choropleth Map]

This example produces a choropleth (two-dimensional) map that shows the population of countries in Europe. Since the DISCRETE option is not used, the response variable is assumed to have a continuous range of values. Because neither the LEVELS= nor MIDPOINTS= options are used, the GMAP procedure selects a number of levels based on the number of map areas and then calculates the appropriate response levels. The legend shows the range of values for each level.

 Note about code
goptions reset=all border;
 Note about code
title1 "Population in Europe";
footnote1 j=r "GMPCHORO";
 Note about code
proc gmap map=maps.europe(where=(id ne 405 and id ne 845))
          data=sashelp.demographics(where=(cont=93)) all;
  id id;
  choro pop / cdefault=yellow;
run;
quit;

Previous Page | Next Page | Top of Page