Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Boxplot Using ggplot

The ggplot package also provides functionality to display boxplots. The qplot function is a simple interface to generate one. Here we use the audit dataset to explore the distribution of Age against Education.



> library(ggplot2)
> library(rattle)
> pl <- qplot(audit$Employment, audit$Age, geom=c("boxplot", "jitter"))
> print(pl)

Image dmsurvivor-runderstand:boxplot_ggplot



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