[R] one more minor and small bug in lattice in R

Deepayan Sarkar deepayan.sarkar at gmail.com
Thu Aug 4 18:37:55 CEST 2005


On 8/3/05, Wladimir Eremeev <wl at eimb.ru> wrote:
> Dear all.
> 
>  I have found one more minor bug in the Lattice package.
> 
>  When xyplot plots several curves on each panel with the default panel
>  function panel.xyplot, and when it is called with "g" %in% type
> (that is,
> xyplot(y1+y2+y3~x|cond,allow.multiple=TRUE,type=c("o","g"),<other params>)
>  ), it draws grid lines several times (for each curve), and it appears,
>  that they overlay all curves plotted, except the last one.
> 
>  I think there is a need to establish some kind of flag, showing, that
>  the grid is already drawn, and other runs of the panel.xyplot for the
>  same panel must not draw it again.

This has been fixed in the latest version (which has been uploaded,
but not on CRAN yet), by making panel.superpose handle 'g' in type.

Deepayan




More information about the R-help mailing list