[R] saving plots as objects?

Deepayan Sarkar deepayan at stat.wisc.edu
Fri Feb 27 09:13:28 CET 2004

On Friday 27 February 2004 01:59, Prof Brian Ripley wrote:
> On Fri, 27 Feb 2004, Deepayan Sarkar wrote:

> > There has always been an update() method that's supposed to be used
> > for this. No one uses it much, and it probably has a few bugs (but
> > should be improved in time for R 1.9.0). From ?xyplot:
> >
> > Value:
> >
> >      An object of class ``trellis''. The `update' method can be used
> > to update components of the object and the `print' method (usually
> > called by default) will plot it on an appropriate plotting device.
> Ah, I see.  It cannot change the panel function, for example, indeed
> none of the things I was thinking about.  I had thought update()
> recalculated the plot, so I've learned something, thank you.

Well, there's really no reason why the panel function could not be changed, 
and the fact that it cannot is one of the bugs I mentioned. The update 
method should be much better overall in 1.9.0.


More information about the R-help mailing list