Procedure features: |
BLOCK statement options:
|
AREA statement options:
|
|
Other features: |
FORMAT statement |
LEGEND statement |
|
Sample library
member: |
GMPFORMT
|
This
example creates formats for the response variables.
The format for the POP variable defines and labels ranges of values. These
ranges appear in the legend and make the map easier to understand.
The example also uses the AREA statement to patterns
the map areas by region.
|
goptions reset=all border; |
|
proc format;
value popfmt low-1000000="0-1"
1000001-10000000="1-10"
10000001-100000000="10-100"
100000001-500000000="100-500"
500000001-high="over 500";
run; |
|
proc format;
value $ regionfmt "SEAR" = "South-East Asia"
"EUR" = "Europe"
"EMR" = "Eastern Mediterranean"
"WPR" = "Western Pacific";
run; |
|
title1 "Population Data for Asia (2005)";
footnote j=r "GMPFORMT"; |
|
legend1 label=("Population (Millions)"); |
|
proc gmap data=sashelp.demographics(where=(cont=95))
map=maps.asia all;
format pop popfmt.;
format region $regionfmt.;
id id;
area region / midpoints="SEAR" "EUR" "EMR" "WPR";
block pop / levels=all
legend=legend1
relzero;
run;
quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.