BookmarkSubscribeRSS Feed
Anita_n
Pyrite | Level 9

How can I  display location symbols on the regions?  some region names were not displayed, I think because of the tiny space. Is there any way to solve that?

2 REPLIES 2
ballardw
Super User

It does help to show the code you have so far that doesn't have the names "fit". Then we can at least use the variable names.

 

If you have the values of a variable that are too long you could try creating a custom format to display the character or abbreviated text for that variable. You would only need to do that for the values that don't fit.

 

Something like:

 

Proc format;

value $shorttext

"This is a long name" = "TLN"

"Long name to char"  = "*"

;

 

In your Proc Gmap you would apply the format by adding:

 

Format namevar $shorttext. ;

 

I have also created Annotate data sets with Text and a line/arrow to the location.

And of course there is always the option of making a larger map realizing that may not be practical for all cases.

GraphGuy
Meteorite | Level 14

How were you displaying the region names, when "some were not displayed"?

Were there any messages in the log, that might indicate why they were not displayed?

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 2 replies
  • 414 views
  • 2 likes
  • 3 in conversation