Features: |
MAP= required argument referring to traditional map data DATA= required argument referring to response data FORMAT statement ID statement AREA statement option MIDPOINTS=
|
Other features: |
FORMAT procedure LEGEND statement |
Data sets: | MAPS.ASIA (map data)
SASHELP.DEMOGRAPHICS (response data) |
Sample library member: | GMPFORMT |
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)";
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 / legend=legend1 relzero; run; quit;
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;