[R] lattice visualization - superpose multiple columns over another (fixed) column
Rajarshi Guha
rajarshi.guha at gmail.com
Tue Apr 20 18:28:35 CEST 2010
Hi, I've been struggling with a lattice visualiation. I have a
data.frame with 4 columns. What I'd like to have is a set of 3 panels.
Ecah panel will have the first column plotted against serial number
and then will superimpose the relevant column. My non-lattice version
is as follows:
x <- data.frame( ... )
par(mfrow=c(3,1))
for (i in 2:4) {
plot(x[,1])
points(x[,i])
}
Any suggestions as to how I could convert this to a lattice version
would be much appreciated
Thanks,
--
Rajarshi Guha
NIH Chemical Genomics Center
More information about the R-help
mailing list