Data visualization with SAS programming

Best Options for Maps in SAS 9.2

Accepted Solution Solved
Reply
Super Contributor
Posts: 465
Accepted Solution

Best Options for Maps in SAS 9.2

Is there a better way to display maps and the concentration of population in SAS 9.2 than to use proc gmap?  This documentation covers gmap http://support.sas.com/sassamples/graphgallery/PROC_GMAP.html


Accepted Solutions
Solution
‎07-17-2015 12:29 PM
SAS Employee
Posts: 170

Re: Best Options for Maps in SAS 9.2

It is very simple to display counties. 

data va; set maps.counties;  if (state=51) then output; run;  /*Subset VA*/

proc gproject data=va out=VAprj; id state; run;

proc gmap data=VAprj map=VAprj; id county; choro county; run;

You will need to change the DATA variable in GMAP to whatever you want.

Note, i wouldn't display counties for the US map because it will be too cluttered.

Also note that MAPSGFK are better maps to use if you are running 9.4.  But you cannot use them with 9.2.

View solution in original post


All Replies
Grand Advisor
Posts: 17,356

Re: Best Options for Maps in SAS 9.2

Are you looking for US maps?

There were some neat maps floating around the past month or two that use a hexagon representation of the data - it uses lat/long as X/Y so not a geographical representation but it was in the shape of US and illustrated the data quite well.

Super Contributor
Posts: 465

Re: Best Options for Maps in SAS 9.2

I’m looking for three maps, US, Virginia, and Global.


Can you post the link?

Super Contributor
Posts: 465

Re: Best Options for Maps in SAS 9.2

This is useful.  I’m not sure how to display counties on the state map though.

http://support.sas.com/rnd/datavisualization/mapsonline/html/maps/countries/us_va.html

Solution
‎07-17-2015 12:29 PM
SAS Employee
Posts: 170

Re: Best Options for Maps in SAS 9.2

It is very simple to display counties. 

data va; set maps.counties;  if (state=51) then output; run;  /*Subset VA*/

proc gproject data=va out=VAprj; id state; run;

proc gmap data=VAprj map=VAprj; id county; choro county; run;

You will need to change the DATA variable in GMAP to whatever you want.

Note, i wouldn't display counties for the US map because it will be too cluttered.

Also note that MAPSGFK are better maps to use if you are running 9.4.  But you cannot use them with 9.2.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 447 views
  • 3 likes
  • 3 in conversation