[R] xyplot with all columns of a data.frame on a single plot
Rajarshi Guha
rajarshi.guha at gmail.com
Tue Jul 27 04:26:54 CEST 2010
Hi, I have a data.frame with columns named X, D1, D2, D3
I know I can get a single plot with 3 curves by doing
xyplot(D1 + D2 + D3 ~ X, data)
but in some cases I might have columns D1 ... D10.
Is there a way to plot all 10 columns without having to specify each
individual term?
(By analogy with formulae in lm, I thought, xyplot(. ~ X, data) would
work, but it didn't)
Thanks,
--
Rajarshi Guha
NIH Chemical Genomics Center
More information about the R-help
mailing list