Chapter Contents

Previous

Next
The GMAP Procedure

Example 8: Specifying Midpoints in a Prism Map


Procedure features:
PRISM statement options:
LEGEND=
MIDPOINTS=
XLIGHT=
XVIEW=
ZVIEW=
Other features:
LEGEND statement
Data set: REFLIB.SITES
Sample library member: GR19N08

[IMAGE]

This example explicitly specifies the midpoints for three response levels. Each response level uses the default solid pattern and a color from the colors list.

The example also changes the map viewpoint and light source.
 Note about code
libname reflib 'SAS-data-library';
libname maps 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
         colors=(blue green red) ctext=black
         ftext=swiss htitle=6 htext=3;
 Note about code
title1 'Hazardous Waste Site Installations (1997)';
footnote1 j=r 'GR19N08 ';
 Note about code
legend shape=bar(4,4)
       value=(j=l)
       label=('Number of Sites:'
              j=l '(midpoint of range)')
       cborder=black;
 Note about code
proc gmap map=maps.us data=reflib.sites;
   id state;
   prism sites / midpoints=25 50 75
                 xlight=5
                 xview=.75
                 zview=5
                 legend=legend
                 coutline=gray;
run;
quit;


Chapter Contents

Previous

Next

Top of Page

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