I have the addresses (address line, city state, zip) for individuals in 3 states (DC,MD,VA) and trying to create a map that will show the 3 states together and plot each individual so that I can see where most of them are coming from.
Is there some code someone can share with me or point me to the right resources to do this?
Post some sample data to get a code answer.
Also, see this
Here's one way to do it, using Proc Gmap and annotate ...
input statecode $ 1-2 value;
data my_map; set maps.us (where=(statecode in ('NC' 'SC' 'VA')));
proc sql noprint;
create table anno_dots as
select unique my_data.*, uscenter.x, uscenter.y
from my_data left join maps.uscenter
%let max_val=500; /* maximum size of data value to scale to */
%let max_area=40; /* size of the maximum dot you want in the map */
data anno_dots; set anno_dots;
length function $8 color $20;
xsys='2'; ysys='2'; hsys='3'; when='a';
color='dodgerblue'; style='psolid'; output;
color='gray33'; style='pempty'; output;
pattern1 v=s color=grayf5;
proc gmap data=my_map map=my_map anno=anno_dots;
choro segment / levels=1 nolegend coutline=gray55;
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.