January 7, 2015 Leave a comment
I previously explained the statistics behind box plots and how to produce them in R in a very detailed tutorial. I also illustrated how to produce side-by-side box plots with contrasting patterns in R.
The PROC TEMPLATE statement specifies the contrasting colours to be used for different classes. I also include code for exportingthe result into a PDF file using ODS PDF. (I used varying shades of grey to allow the contrast to be shown when printed in black and white.)