New version of lattice (possible incompatibility with old code)

Deepayan Sarkar
Wed, 23 Oct 2002 12:16:55 -0700 (PDT)


there's a new version of lattice on CRAN (0.6-5) which will probably ship with
R 1.6.1. It has a minor change in API which might affect packages using lattice
-- only if they define panel/prepanel functions of their own. In previous
versions, it was implicitly assumed that panel (and prepanel) functions would
only be supplied _numeric_ x,y,z arguments, although I don't remember this as
being documented. This has changed in the new version (mostly to allow
rudimentary POSIXt labelling and other possible improvements in future). This
is actually used only in prepanel functions right now, and all predefined panel
functions in lattice have only been modified to have 

x <- as.numeric(x)

etc in the very beginning. This should fix any problems elsewhere as well.

If prepanel functions need to be redefined, prepanel.default.xyplot and
prepanel.default.bwplot should serve as templates. Lines like 

x <- as.numeric(x) 

should revert to old behaviour here too.



 the expert host your web site

r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: