BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Anita_n
Pyrite | Level 9

Dear all,

is it possible to format the values of variables/ variablenames displayed in a vbox displaystats xaxis table

I displayed the following displaystats=(mean median min max)

This is displayed in the xaxistable, I will like to change the name of the mean variable to something else. The size and colors of the variables. Any help?

 

proc sgplot data=sashelp.class;
  vbox age / category=sex displaystats=(mean median min max);
  run;
1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

Unfortunately, no. Your best option is to calculate these your self using PROC MEANS or PROC SUMMARY, match merge the result with the original data, and display it using the XAXISTABLE statements. You can set whatever format (and labels, if you want) on the columns in the data step. The labeling, size and color can be controlled from the XAXISTABLE statements. Let me know if you need more details on how to do this.

View solution in original post

2 REPLIES 2
DanH_sas
SAS Super FREQ

Unfortunately, no. Your best option is to calculate these your self using PROC MEANS or PROC SUMMARY, match merge the result with the original data, and display it using the XAXISTABLE statements. You can set whatever format (and labels, if you want) on the columns in the data step. The labeling, size and color can be controlled from the XAXISTABLE statements. Let me know if you need more details on how to do this.

Anita_n
Pyrite | Level 9

@DanH_sas okay, thanks. I will try that

sas-innovate-white.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.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 1121 views
  • 1 like
  • 2 in conversation