BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Kyra
Quartz | Level 8

Hi,

 

I have created a box plot using following code

ods graphics on;
proc boxplot data=red.date2;
plot (PROCAL )*intub/ boxstyle = schematic;run;

 

Please find output attached.

 

I want to modify the y axis to make it more readable.

Please suggest.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16

You can control the y axis by axis2 statement and with vaxis option as below in proc boxplot, please try and let me know if it works

 

ods graphics on;

axis2 order = (0 to 10 by 1) ;

proc boxplot data=red.date2;
plot (PROCAL )*intub/ boxstyle = schematic vaxis=axis2;
run;
Thanks,
Jag

View solution in original post

3 REPLIES 3
Jagadishkatam
Amethyst | Level 16

You can control the y axis by axis2 statement and with vaxis option as below in proc boxplot, please try and let me know if it works

 

ods graphics on;

axis2 order = (0 to 10 by 1) ;

proc boxplot data=red.date2;
plot (PROCAL )*intub/ boxstyle = schematic vaxis=axis2;
run;
Thanks,
Jag
Kyra
Quartz | Level 8

Used the code but box plot still looks the same. Please find attached. I want the y-axis in a way so that it reads 0, 0.5 where 1 is now etc for more readability.

Jagadishkatam
Amethyst | Level 16

Please try the below code

 

ods graphics on;

axis2 order = (0 to 1 by 0.1) ;

proc boxplot data=red.date2;
plot (PROCAL )*intub/ boxstyle = schematic vaxis=axis2;
run;
Thanks,
Jag

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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