Skip to content
Prev 181424 / 398502 Next

Creating multiple graphs based on one variable

On Tue, 26 May 2009 02:34:55 -0700 (PDT) Tim Clark
<mudiver1200 at yahoo.com> wrote:
TC> I would like separate plots for Tony, Mike, and Vicky.  What is the
TC> best way to do this?  

use the lattice package:

library(lattice)
xyplot(y~x|Name,data=dat)

Mr. Sarkar (the author of the package) has written an excellent book on
his package I recommend it.

hth
Stefan