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 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 © 2004-2006 [email protected]
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.