BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DavidPhillips2
Rhodochrosite | Level 12

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

1 ACCEPTED SOLUTION

Accepted Solutions
Darrell_sas
SAS Employee

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

4 REPLIES 4
Reeza
Super User

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.

DavidPhillips2
Rhodochrosite | Level 12

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


Can you post the link?

DavidPhillips2
Rhodochrosite | Level 12

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

Darrell_sas
SAS Employee

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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