Procedure features: |
|
Other features: |
|
Sample library
member: |
GMPLABEL
|
![[Labeling States on a U.S. Map]](images/gmplabel.gif)
This
example uses the Annotate facility to add labels
to each area in a map of Belarus. The CHORO statement assigns the Annotate
data set to the map.
The %MAPLABEL annotate macro is used to create and position the map
labels. For more information about this macro, see %MAPLABEL Macro.
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
goptions reset=all border; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
title "Labeling Provinces with the MAPLABEL Macro";
footnote j=r "GMPLABEL"; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
pattern1 value=empty color=blue repeat=6; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
%annomac;
%maplabel (maps.belarus, maps.belarus2, work.labelout, idname, id, font=Arial Black,
color=crimson, size=4, hsys=3); |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
proc gmap map=maps.belarus data=maps.belarus;
id id;
choro id / nolegend annotate=labelout;
run;
quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.