Chapter Contents

Previous

Next
The GMAP Procedure

Example 7: Producing a Simple Prism Map


Procedure features:
ID statement
PRISM statement option:
COUTLINE=
Data set: REFLIB.SITES
Sample library member: GR19N07

[IMAGE]

This example produces a prism map of the hazardous waste sites. 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= option is 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 midpoint value of each level.

The map areas use the default pattern, which is a solid fill that rotates through the colors list. Because the colors list is specified in the GOPTIONS statement, all colors are used in the rotation. COUTLINE= outlines the map areas in gray, instead of the default outline color, which is the first color in the list, in this case, BLUE.

Since the XVIEW=, YVIEW=, and ZVIEW= options are not used, the default viewing position, above and to the east and south of the center of the map, is used. Since the XLIGHT= and YLIGHT= options are not used, none of the side polygons of the prisms are shadowed. The light source is the same as the viewing position.
 Note about code
libname reflib 'SAS-data-library';
libname maps 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
         colors=(blue green lime lipk cyan red)
         ctext=black ftext=swiss htitle=6 htext=3;
 Note about code
title1 'Hazardous Waste Site Installations (1997)';
footnote1 j=r 'GR19N07 ';
 Note about code
proc gmap map=maps.us data=reflib.sites;
   id state;
   prism sites / coutline=gray;
run;
quit;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.