Data visualization with SAS programming

Text Plot

Accepted Solution Solved
Reply
Contributor
Posts: 28
Accepted Solution

Text Plot

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

Accepted Solutions
Solution
‎03-31-2017 10:52 AM
SAS Super FREQ
Posts: 1,134

Re: Text Plot

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


All Replies
Super User
Posts: 11,101

Re: Text Plot

Change the size of the graphic display area

Change the size of the text

Reduce the number characters of text displayed

Contributor
Posts: 28

Re: Text Plot

Thank you, I gather there is no other way to add more variables. I can manage but it will be hard to see.
Solution
‎03-31-2017 10:52 AM
SAS Super FREQ
Posts: 1,134

Re: Text Plot

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

Contributor
Posts: 28

Re: Text Plot

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.
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 191 views
  • 2 likes
  • 3 in conversation