DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
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() |