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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2292 views
  • 0 likes
  • 2 in conversation