Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Multiple Boxplots

The default boxplot function in fact will plot multiple boxplots.

By comparing a number of variables we can see that some have quite a bit more spread than others, and their medians have different relative positions within the box.

We include the code here to generate a PDF version of the plot primarily to demonstrate how we can increase the width of the plot for a more pleasing presentation.

We could have presented the plot horizontally by setting the Roption[]horizontal option to TRUE.



pdf("graphics/rplot-wine-boxplot-multi.pdf", width=9)
load("wine.Rdata")
boxplot(wine[,c(3,4,7,8,10,13)])
dev.off()

http://rattle.togaware.com/code/rplot-wine-boxplot-multi.R



Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010