[R] xyplot gets overplotted by plot
Roger D. Peng
rpeng at jhsph.edu
Thu Oct 14 18:54:03 CEST 2004
Mixing base and lattice graphics, in general, does not work. If you
really want to do something along these lines, look at the `gridBase'
package on CRAN.
-roger
Henric Nilsson wrote:
> 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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list