[R] Lattice not plotting within loop

(Ted Harding) Ted.Harding at nessie.mcc.ac.uk
Mon Feb 3 13:48:24 CET 2003


Something I don't understand ... (!)

With the lattice library loaded, I have a loop

  for( Z in ... ) {
  ...
  xyplot(y~x | t, xlab=..., ylab=... )
  }

and no plot appears on the R graphics device.
However, when I run the commands within {...}
separately for each instance of Z, I get the
plot displayed each time.

So it looks as though "xyplot" is not outputting
to the graphics display when invoked within a loop.

What am I mising?

With thanks,
Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 03-Feb-03                                       Time: 12:35:02
------------------------------ XFMail ------------------------------




More information about the R-help mailing list