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

Hi,

 

I want to use proc gmap to create a world map, but in my data set around 50% of the countries are not included. However, SAS does not display them in the the outcoming map. The countries simply do not appear in the map and the whole map looks "empty".

Is there some option in the procedure to display all values which are not found in the data set but in the map data?

 

Here is my code:

legend1 label=(position=top "Transaction Volume in €")

shape=bar(.1in,.1in);

title ls=1.5 "Incoming Transactions";

proc gmap data=CTRY_MAP map=maps.world;

id id;

choro SUM_AMOUNT_EURO/coutline=gray44 legend=legend1;

run;

 

 

Thanks,


KS

KS

 

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

Adding the ALL option to the PROC GMAP statement should give you what you want.

 

Hope this helps!

Dan

View solution in original post

3 REPLIES 3
DanH_sas
SAS Super FREQ

Adding the ALL option to the PROC GMAP statement should give you what you want.

 

Hope this helps!

Dan

GraphGuy
Meteorite | Level 14

And two other options you'll find useful, when using the 'all' option, per Dan's tip ...

 

proc gmap data=CTRY_MAP map=maps.world all;

 

You might also find the 'cdefault' and 'cempty' options useful.

Cdefault controls the fill color of the empty areas, and cempty controls the outline color.

 

choro SUM_AMOUNT_EURO/coutline=gray44 legend=legend1 cdefault=white cempty=gray99;

fuhgidabowit
Calcite | Level 5

Thanks, really helpful!

SAS INNOVATE 2024

Innovate_SAS_Blue.png

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. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 367 views
  • 0 likes
  • 3 in conversation