![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/GRAPH Software: Reference |
| Annotate function: | LABEL |
| Annotate variables: | HSYS |
| POSITION | |
| SIZE | |
| STYLE | |
| TEXT | |
| WHEN | |
| X and Y | |
| XSYS | |
| YSYS | |
| Sample library member: | GR10N01 |
See Projecting an Annotate Data Set for an example of labeling a map using map coordinates in units of latitude and longitude.
See The GMAP Procedure for more information on using map data sets.
| | libname maps 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
colors=(black blue green red)
ftext=swissb htitle=6 htext=3; |
| | data lower48;
set maps.us;
if state ne stfips('AK');
if state ne stfips('HI');
run; |
| | data citystar;
length function style color $ 8 position $ 1
text $ 20;
retain function 'label' xsys ysys '2' hsys '3'
when 'a'; |
| | set maps.uscity(keep=x y city state);
if (city='Atlanta' and state=13)
or city='Chicago'
or city='Seattle'; |
| | style='special'; text='M'; color='red'; size=7;
position='5'; output; |
| | style='swissb'; text=city; color='green';
size=5; position='8'; output;
run; |
| | title 'Distribution Center Locations'; footnote font=swiss j=r 'GR10N101 '; |
| | pattern value=mempty color=blue repeat=49; |
| | proc gmap data=lower48 map=lower48; id state; choro state / annotate=citystar discrete nolegend; run; quit; |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.