[R] trellis plot problem with R-1.9.0-1

Deepayan Sarkar deepayan at stat.wisc.edu
Thu May 13 15:53:11 CEST 2004


On Monday 10 May 2004 05:46, Stephan Moratti wrote:
> I tried following commands:
>
> amp~time|subject/trial   #this was the grouping structure of the data
>
>
> plot(dip,inner=~condition,layout=c(2,2))
>
> after the plot command I obtained this error message:
>
> Error in if(!any(cond.max.level - cond.current.level <0)&&(row-1)* :
> missing value where TRUE/FALSE needed
>
> This error only occured in compination with "layout". It was no
> problem to plot all subjects on one page. Further, this error did not
> occur using older version of R (1.8 or 1.7). Did somebody encounter
> similar problems ?

Thanks for the report. This turns out to be a bug in the calculation of 
'skip', caused by my using the wrong variable name (this was introduced 
fairly recently when the behaviour of skip changed for multipage 
displays). Anyway, I'll post an updated version, meanwhile, a 
workaround is to specify skip explicitly, e.g., 

plot(dip,inner=~condition,layout=c(2,2), skip = rep(FALSE, 76))

Deepayan




More information about the R-help mailing list