Hello,
Using SAS 9.4, I have the attached code. I would like to control the size of the map that is produced. I am creating 2 separate maps based on ADI, score from 0-100, and one map is in a more concentrated area such that is shows roads and city names. I would like the map to look like the second where it only shows the state names. Is it possible to control the map area to make both maps where they show the same areas, even if the same areas are not in both datasets? Thank you
proc sgmap mapdata=locations_ge62 plotdata=locations_ge62 maprespdata=location_nodups;
openstreetmap;
scatter x=x y=y / markerattrs=(symbol=asterisk size=15) group=national_ADI_cat;
label national_ADI= 'National ADI';
Title 'Figure 4. Map of ADI by Zip Code- ADI >=62';
run;
About your last question, you could make a special scatter point and make its size=0.
scatter x=x y=y / markerattrs=(size=0);
This skill I learned is from @GraphGuy . Other questions @GraphGuy (a.k.a Robert.Allison) might give you a hand.
how about adding:
ods graphics / widht=1600px widht=1200px;
before proc sgmap ?
Bart
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.