[R] Alternative to xyplot()?
Manuel Morales
Manuel.A.Morales at williams.edu
Tue Jul 17 23:53:51 CEST 2007
On Tue, 2007-07-17 at 22:18 +0100, Gavin Simpson wrote:
> On Tue, 2007-07-17 at 16:39 -0400, Manuel Morales wrote:
> > Hello list,
> >
> > Is anyone aware of a non-lattice-based alternative to xyplot()?
>
> x <- rnorm(20)
> y <- rnorm(20)
> plot(x, y) ?
>
> If you mean some specific aspect of xyplot(), you'll have to tell us
> what this is.
>
> HTH
>
> G
Sorry. I was thinking of the "groups" functionality, as illustrated
below:
grps<-rep(c(1:3),10)
x<-rep(c(1:10),3)
y<-x+grps+rnorm(30)
library(lattice)
xyplot(y~x,group=grps, type=c("r","p"))
More information about the R-help
mailing list