/***************************************************************************************************************** SAS file name: Boxplot File location: _________________________________________________________________________________________________________________ Purpose: To demonstrate how to draw a simple boxplot in SAS with PROC SGPLOT Author: Peter Clemmensen Creation Date: 16/06/2017 This program supports the example page "Boxplot Example In SAS With PROC SGPLOT" on SASnrd.com *****************************************************************************************************************/ /* Draw Simple Boxplot */ proc sgplot data=sashelp.iris; vbox SepalLength / category=Species; run; /* A Boxplot With Modifications */ title "Boxplot Of Sepal Lengths"; proc sgplot data=sashelp.iris noautolegend; vbox SepalLength / category=Species connect=mean connectattrs=(color=black pattern=mediumdash thickness=1) meanattrs=(symbol=plus color=red size=20) lineattrs=(color=black) medianattrs=(color=black) whiskerattrs=(color=black) outlierattrs=(color=green symbol=starfilled size=12); xaxis display=(noline noticks nolabel); yaxis display=(noline noticks) labelattrs=(weight=bold); run; title;