This discussed almost daily.

You *print* a trellis/lattice plot, and no printing is done in your 
example.

On Mon, 3 Feb 2003 [EMAIL PROTECTED] wrote:

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

It's in all good books on S/R ....

> 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.

It never does.  print.trellis does the outputting.

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to