Chapter Contents

Previous

Next
The GMAP Procedure

Example 2: Specifying Response Levels in a Block Map


Procedure features:
BLOCK statement options:
LEGEND=
LEVELS=
SHAPE=
XVIEW=
ZVIEW=
Other features:
LEGEND statement
PATTERN statement
Data set: REFLIB.SITES
Sample library member: GR19N02

[IMAGE]

This example uses LEVELS= to specify the number of response levels for the blocks. LEVELS= tells GMAP how many response levels and GMAP calculates the midpoints. Eight PATTERN statements explicitly define a color for each of these response levels.

A single PATTERN statement uses the REPEAT= option to define an empty map/plot pattern outlined in black for all the map areas.

The example also changes the viewpoint by rotating the map to provide a better view of the northeast states. As a result, the blocks appear shorter.
 Note about code
libname reflib 'SAS-data-library';
libname maps 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
         colors=(black blue green red)
         ctext=black ftext=swiss htitle=6 htext=3;
 Note about code
title1 'Hazardous Waste Site Installations (1997)';
footnote1 j=r 'GR19N02 ';
 Note about code
pattern1 value=solid color=lime;
pattern2 value=solid color=cyan;
pattern3 value=solid color=green;
pattern4 value=solid color=blue;
pattern5 value=solid color=lipk;
pattern6 value=solid color=red;
pattern7 value=solid color=gray;
pattern8 value=solid color=black;
 Note about code
pattern9 value=mempty color=black repeat=50;
 Note about code
legend1 value=(justify=left)
        label=('Number' justify=left 'of Sites:'
               position=(middle left))
        frame;
 Note about code
proc gmap map=maps.us data=reflib.sites;
   id state;
   block sites / levels=8
                 shape=cylinder
                 xview=0.75
                 zview=5
                 legend=legend1;
run;
quit;


Chapter Contents

Previous

Next

Top of Page

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