[R] lattice: packet.number() versus panel.number()

David Winsemius dwinsemius at comcast.net
Wed Aug 27 08:10:23 CEST 2014


On Aug 26, 2014, at 3:25 PM, Benjamin Tyner wrote:

> Hi,
> 
> According to
> https://svn.r-project.org/R-packages/trunk/lattice/R/print.trellis.R,
> 
>    "[panel.number] is usually the same as, but can be different from
> packet.number"
> 
> and I had been under the impression that as long as the user is not
> using a custom index.cond nor perm.cond, the panel.number would in fact
> be the same as the packet.number.
> 
> However, I have recently come across a case where the two are *not* the
> same, even though I am not using a custom index.cond nor perm.cond.
> 
> So my question is, what might be some other possible situations in which
> the two would be expected to differ?

The immediate hypothesis that leaps to mind is cases where there are multiple pages. On each page I suspect the upper left numbering restarts with 1, but I suspect the packet numbers are sequential increasing.

-- 

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list