Exploratory graphics

Basic plots

Single variable:

Two variables:

More than two variables:

Trellis graphics

Can generalise the coplot to condition on more than one variable. Easy if the variables are categorical, but if they’re continuous we need to divide them up in to subranges. Conditoning variables determine layout of cells. x/y variables determine type of graph in each cell.

In R:

library(lattice)
xyplot(y ~ x | w * z, data=a.df)
xyplot(y ~ x | equal.count(w, number=4, overlap=0)