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

I use SAS 9.4M3.

Using TextPlot with sgrender heatmapparm. The position variable has various selections (top, topright, center, bottom, etc.) however on my heatmap using 3 text plots, they cram into each other. Is there a way to control textplot variables differently, giving me more control to place them where I want in the box?


heatmap.PNG
1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

It is not clear to me what you are asking, but I will take a guess.  Currently, the position option takes only a value (TOP, TOPRIGHT, etc.).  This applies to all the text observations.  But you may want values positioned differently.  One way around this is to break up your display using multiple TEXT plot statements, one each for the position value.  I realize this is not ideal, but this is what I have done before when I want some values positioned at top of (x, y) and others at bottom.   I hope this helps. 

 

FYI, we reasize this limitation and we are extending this to allow POSITION=variable.  Then, you will be able to provide the position value in the column of the data for each observation.  We expect this to be available with SAS 9.40M5

View solution in original post

4 REPLIES 4
ballardw
Super User

Change the size of the graphic display area

Change the size of the text

Reduce the number characters of text displayed

BrianMc
Obsidian | Level 7
Thank you, I gather there is no other way to add more variables. I can manage but it will be hard to see.
Jay54
Meteorite | Level 14

It is not clear to me what you are asking, but I will take a guess.  Currently, the position option takes only a value (TOP, TOPRIGHT, etc.).  This applies to all the text observations.  But you may want values positioned differently.  One way around this is to break up your display using multiple TEXT plot statements, one each for the position value.  I realize this is not ideal, but this is what I have done before when I want some values positioned at top of (x, y) and others at bottom.   I hope this helps. 

 

FYI, we reasize this limitation and we are extending this to allow POSITION=variable.  Then, you will be able to provide the position value in the column of the data for each observation.  We expect this to be available with SAS 9.40M5

BrianMc
Obsidian | Level 7
That's correct. The position value is limited in my heatmap. There's approx. 16 x values and 12 y values so I stretch the chart out. I am using multiple text statements (3). One for the top, one for the middle and the third for the bottom. It looks better when I reduce the font size. I am limited, but is is a great chart. If I could add 2 more variables for example we could really have a stellar strategy chart. Thank you, I look forward to M5.

sas-innovate-wordmark-2025-midnight.png

Register Today!

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.


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