Plots for subsets of data

Jeff Morris (
Tue, 20 Jan 1998 11:33:38 -0500

I have three variables, one categorical and two numeric. I want
to plot the numeric ones against eachother for each unique value
of the categorical variable. I could use coplot, but I want separate
plots. Now, I did figure out how to do it, but surely there is an
easy way. I was hoping for something like plot(x,y,cat="a") rather
than going through the bother of subsetting both x and y. Can anyone
tell me if there is a simple way to do this? In general, is there
a simple way to subset data by a variable then run a function on it?



Jeffrey D. Morris, Ph.D.
Eastman Kodak Co.
Rochester, NY 14652