I would like to make a map of the world indicating where all the participants in my study were born. I stumbled upon the proc GMAP procedure, but I am a bit confused on how to use it. I tried the following code but it didn't work. The following error message appeared:
PROC GMAP MAP=merged
Thank you in advance for your help!
Hi, you posted this in the SAS Visual Analytics forum - can you quickly confirm what SAS environment you use? If you do use SAS Visual Analytics then creating geographical maps is just a matter of loading data in your environment and drag one of the geo objects (e.g. Geo Region) to the report canvas and assign roles. If you do use a programming environment - we may have to move this discussion to the appropriate forum.
Thank you! Falko
I think you would find this easier to create using PROC SGMAP instead of PROC GMAP. To create your example, I would probably overlay a SCATTER plot on an OPENSTREETMAP. The code would look something like the following:
proc sgmap plotdata=birth;
scatter x=lat y=lomg;
Hope this helps!
I would like to color the countries of birth. I would like to make a map like this one, except without dots on the map.
Here's a similar example I created, using Proc Gmap:
And here is the SAS code (there are several different ways you can control the color, using numeric or character data):
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.