Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Alternative Multiple Dot Plots

[width=0.7]rplot-trellis-shapes


# Suggested by Sundar Dorai-Raj
library("lattice")
data(barley)
pdf("graphics/rplot-trellis-shapes.pdf")
  new.theme <- function()
  {
    theme <- col.whitebg()
    symb <- theme$superpose.symbol
    symb$cex <- seq(0.5, 1.5, length = length(symb$cex))
    theme$superpose.symbol <- symb
    theme
  }
  trellis.par.set(theme = new.theme())
  dotplot(variety ~ yield | year, data=barley, groups=site)
dev.off()

http://rattle.togaware.com/code/rplot-trellis-shapes.R



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