/* comments */
within
each section of rewritten code.
/* Change the traditional map data set name (maps.afghanis) */ /* to the GfK map data set name (mapsgfk.afghanistan) */ /* The id-variable value in mydata must match the GfK id-variable character format */ /* GfK id-variables ID and ID1 are character format */ proc gmap data=mydata map=mapsgfk.afghanistan; id id; choro id / nolegend; run;
/* Change the traditional map data set name (maps.europe) */ /* to the GfK map data set name (mapsgfk.europe) */ /* If the id-variable value in 'mydata' is numeric choose the GfK id-variable SEGMENT, which is also numeric format, or create your own variable */ /* Note that GfK id-variables ID and ID1 are character format */ /* The LEVELS=<number-of-midpoints> option will only work with numeric response variable values */ proc gmap data=mydata map=mapsgfk.europe; id segment; choro segment / levels=1 nolegend anno=mypoints; run;
proc gproject data=maps.states out=mystates project=lambert; id state; run; proc gmap data=mydata map=mystates; id state; choro state / nolegend; run;
/* Change the traditional map data set name (maps.states) to the GfK map data set name mapsgfk.us_states */
/* Remove Proc GPROJECT and use the provided projected coordinates in degrees */
proc gmap data=mydata map=mapsgfk.us_states;
id state;
choro state / nolegend;
run;
/* mapsgfk.projparm is the data set that contains input projection parameters. */ /* us.states is the entry in the projection parameters data set that is used for input parameters, */ /* mapsgfk.us_states is the GfK map data set for the United States */ /* containing unprojected longitude (X) and latitude (Y) variables in radians */ proc gproject data=anno out=annoproj parmin=mapsgfk.projparm parmentry=us.states; run; proc gmap data=mydata map=mapsgfk.us_states anno=annoproj; id state; choro state / nolegend; run;