BookmarkSubscribeRSS Feed
asmits
Calcite | Level 5
Hi,
I am trying to find a way to have axis labels defined by a variable in my data set. I want to plot lab values of different tests that have different units in one GTL template so I my axis label to reflect this. Any ideas?
Thanks,
Alain
3 REPLIES 3
DanH_sas
SAS Super FREQ
Hey Alain,

I have an example an example of doing something very similar to this in my paper "Secrets of the SG Procedure". Look at the section called "Paneled Plots with Different Data Range" starting at the end of page 9. The example on page 10 seems to be what you want. Let me know if this works for you.

Thanks!

paper: http://support.sas.com/resources/papers/proceedings09/324-2009.pdf Message was edited by: DanH@sas
asmits
Calcite | Level 5
Hi Dan,

Many thanks, I came across your example and I agree it is a work around. Any idea if Phase 2 will offer more possibilities of using variables in text entries or labels?

Thanks,
Alain
DanH_sas
SAS Super FREQ
Currently, the only variables you can use in an ENTRY statement or axis label are variables that are part of expressions that return a scalar value, such as eval(mean(weight)). If there is additional functionality you need in this area, you may want to call Technical Support and describe the new functionality you need to them.

Thanks!

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