[R] xyplot gets overplotted by plot

Henric Nilsson henric.nilsson at statisticon.se
Thu Oct 14 17:40:00 CEST 2004


Dear all,

After having set par(mfrow = c(2, 2)) and switching between plot() and 
xyplot() using R 2.0.0 Patched (2004-10-13) under Windows 2000, the lattice 
plot gets overplotted. I also tried this under 1.9.1 Patched (2004-09-22), 
since this is the only older version I've got installed, and it did the 
same thing apart from that the overplotting now starts in the opposite 
lower corner.

I'm having a hard time believing that this is the intended behaviour, but 
I've been proved wrong before... Try

library(lattice)
y <- x <- 1:10
par(mfrow = c(2, 2))
# plots on a new page
plot(y ~ x)
# plots on a new page
xyplot(y ~ x)
# overplotting occurs
plot(y ~ x)

for a reproducible example.

Best wishes,
Henric




More information about the R-help mailing list