BookmarkSubscribeRSS Feed
Rover17
Obsidian | Level 7

Hi SAS Community,

 

When I run my code below to create a set of boxplots, I use the INSETGROUP statement to insert Min, Mean, and Max values. 

 

The Min and Max values display as requested, but the Mean values don't. 

 

Each Mean value has 3 numbers before a decimal, then 2 numbers after the decimal. 

 

Sincere there are 15 boxplots in the chart, I don't think there is enough space to show the Mean values for all the boxplots. Some boxplots show an asterisk for the Mean value. 

 

How can I  adjust the spacing or request truncated mean values for each of the boxplots in the chart?


proc boxplot data=boxplot_3;
plot Step1_1*Program ;
inset min mean max /
header = 'Overall Statistics'
pos = tm;
insetgroup min mean max /
header = 'Min & Max Values for Each Program';
label Step1_1 = 'Step 1 Scores';
run;

 

Thank you,

Aaron

1 REPLY 1
ballardw
Super User

Data.

 

We can't test code without data.

 

Does your log have any interesting notes?

 

Do you have ODS Graphics on? Some of the Proc BOXPLOT features do not work when ODS Graphics is enabled.

 

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 610 views
  • 0 likes
  • 2 in conversation