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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 721 views
  • 2 likes
  • 3 in conversation