There is a much better method I recently came across: "trellis plots". The package in R is called lattice.

This is clearly the way to quickly and neatly plot multifactorial data in lots of meaningful ways.

Some resources:

- Excellent Lecture on making trellis plots with lattice (pdf)
- some hype
- The online book on lattice
- code and figures from the book
- ** a table suggesting general forms for each type of plot (thanks Eldon)

install.packages("lattice", dependencies=TRUE) # I don't think there are any dependencies library("lattice")

## 2 comments:

Well done Padawan. ;) Also check out: http://www.statmethods.net/advgraphs/trellis.html

I really like this website in general for R help.

Ahhh.. did you already know about lattice (I'm always a little late to the R party) :)

Ohh, that is nice... now I realize why that little table is so handy. It suggests the type of associations that will work with each of the different types of plots.

So a bar chart can be done vert or horizontal: x~A or A~x

While getting 3D cloud data would be done with something like: z~x*y|A

Very smooth. I just can't imagine ever trying to make my own multi-plot again since this covers so much of what I probably will ever want to do. What a time saver!

Post a Comment