Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Alternative Multiple Dot Plots

Image 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 © 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