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

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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