Rev 3813 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{G_panel.number}\alias{current.row}\alias{current.column}\alias{packet.number}\alias{panel.number}\alias{which.packet}\alias{trellis.currentLayout}\title{Accessing Auxiliary Information During Plotting}\description{Control over lattice plots are provided through a collection of userspecifiable functions that perform various tasks during the plotting.Not all information is available to all functions. The functionsdocumented here attempt to provide a consistent interface to accessrelevant information from within these user specified functions,namely those specified as the \code{panel}, \code{strip} and\code{axis} functions.}\usage{current.row()current.column()panel.number()packet.number()which.packet()trellis.currentLayout(which = c("packet", "panel"))}\arguments{\item{which}{whether return value (a matrix) should contain panel numbers orpacket numbers, which are usually, but not necessarily, the same(see below for details).}}\value{\code{trellis.currentLayout} returns a matrix with as many rows andcolumns as in the layout of panels in the current plot. Entries inthe matrix are integer indices indicating which packet (or panel; seebelow) occupies that position, with 0 indicating the absence of apanel. \code{current.row} and \code{current.column} return integerindices specifying which row and column in the layout are currentlyactive. \code{panel.number} returns an integer counting which panelis being drawn (starting from 1 for the first panel, a.k.a. the panelorder). \code{packet.number} gives the packet number according to thepacket order, which is determined by varying the first conditioningvariable the fastest, then the second, and so on. \code{which.packet}returns the combination of levels of the conditioning variables in theform of a numeric vector as long as the number of conditioningvariables, with each element an integer indexing the levels of thecorresponding variable.}\note{The availability of these functions make redundant some featuresavailable in earlier versions of lattice, namely optional argumentscalled \code{panel.number} and \code{packet.number} that were madeavailable to \code{panel} and \code{strip}. If you have written suchfunctions, it should be enough to replace instances of\code{panel.number} and \code{packet.number} by the correspondingfunction calls. You should also remove \code{panel.number} and\code{packet.number} from the argument list of your function to avoida warning.If these accessor functions are not enough for your needs, feel freeto contact the maintainer and ask for more.}\seealso{\code{\link{Lattice}}, \code{\link{xyplot}}}\author{ Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}}\keyword{dplot}