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.
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;
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;
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.
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;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.