Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Histogram

A histogram allows the basic distribution of the data to be viewed. Here we plot the histogram for magnesium and alcohol content of various wines, and we might compare it with the previous stem-and-leaf plot which summarises the same data. The shape is basically the same, although in detail they go up and down at different points!

[width=]rplot-wine-hist



attach(wine)
par(mfrow=c(1, 2))
hist(Magnesium)
hist(Alcohol)

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



Copyright © 2004-2006 [email protected]
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.