DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
Trellis Histogram |
Multiple plots can be placed into a single plot using the lattice package. Here we also illustrate the use of the Roption[]color option of the histogram function, setting it to FALSE to obtain a transparent background.
library(lattice) load("wine.Rdata") trellis.device(width=7, height=5, new=FALSE, color=FALSE) with(wine, histogram(~ Alcohol | Type)) |