![]() Chapter Contents |
![]() Previous |
![]() Next |
| The GMAP Procedure |
| Procedure features: |
| |||||
| Other features: |
| |||||
| Sample library member: | GR19N06 |
Note: The coordinates in MAPS.USCENTER
have been projected to match coordinates in the MAPS.US data set. ![[cautionend]](../common/images/cautend.gif)
| | libname reflib 'SAS-data-library';
libname maps 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
colors=(black blue green red)
ftext=swiss htitle=6 htext=3; |
| | data reflib.center;
length function $ 8;
retain flag 0 xsys ysys '2' hsys '3' when 'a'
style 'swiss';
set maps.uscenter
(where=(fipstate(state) ne 'DC')
drop=long lat); |
| | function='label'; text=fipstate(state); size=2.5; position='5'; |
| | if ocean='Y' then
do;
position='6';
output;
function='move';
flag=1;
end; |
| | else if flag=1 then
do;
function='draw';
size=.25;
flag=0;
end;
output;
run; |
| | title 'Positioning State Labels with MAPS.USCENTER'; footnote j=r 'GR19N06 '; |
| | pattern1 value=mempty color=blue repeat=50; |
| | proc gmap data=maps.us map=maps.us;
id state;
choro state / nolegend
annotate=reflib.center;
run;
quit; |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.