Control over lattice plots are provided through a collection of user
specifiable functions that perform various tasks during the plotting.
Not all information is available to all functions. The functions
documented here attempt to provide a consistent interface to access
relevant information from within these user specified functions,
namely those specified as the
axis functions. Note that this information is not available to
prepanel function, which is executed prior to the actual
1 2 3 4 5 6 7
whether return value (a matrix) should contain panel numbers or packet numbers, which are usually, but not necessarily, the same (see below for details).
A character string acting as a prefix identifying the plot of a
trellis.currentLayout returns a matrix with as many rows and
columns as in the layout of panels in the current plot. Entries in
the matrix are integer indices indicating which packet (or panel; see
below) occupies that position, with 0 indicating the absence of a
current.column return integer
indices specifying which row and column in the layout are currently
panel.number returns an integer counting which panel
is being drawn (starting from 1 for the first panel, a.k.a. the panel
packet.number gives the packet number according to the
packet order, which is determined by varying the first conditioning
variable the fastest, then the second, and so on.
returns the combination of levels of the conditioning variables in the
form of a numeric vector as long as the number of conditioning
variables, with each element an integer indexing the levels of the
The availability of these functions make redundant some features
available in earlier versions of lattice, namely optional arguments
packet.number that were made
strip. If you have written such
functions, it should be enough to replace instances of
packet.number by the corresponding
function calls. You should also remove
packet.number from the argument list of your function to avoid
If these accessor functions are not enough for your needs, feel free to contact the maintainer and ask for more.
Deepayan Sarkar [email protected]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.