trellis.function(
formula,
aspect = "fill",
as.table = FALSE,
between = ,
data = ,
key = ,
layout = ,
main = ,
page = ,
panel = panel.trellis.function,
par.strip.text = ,
prepanel = ,
scales = ,
skip = ,
strip = strip.default,
sub = ,
subscripts = ,
subset = ,
xlab = ,
xlim = ,
ylab = ,
ylim = ,
...
)
These arguments are common to all Trellis display functions.
See the documentation for any particular function to read about
any special restrictions or default values involving these arguments.
The formula argument is typically given positionally, i.e., as the
first argument to the function; all other arguments are given in
name=value form.
- aspect:
-
aspect ratio control.
A numeric value controls each panel's physical aspect ratio
(vertical size/horizontal size).
The character string "xy" causes the 45-degree banking rule to be used
on the x and y data for all panels.
The string "fill" (the default)
adjusts the aspect ratio so that the panels fill the
page or screen.
Note that the aspect argument is different for the 3D functions cloud
and wireframe; see trellis.3d.args.
- as.table:
-
logical flag that controls whether the panel order is done as a table
or as a graph.
By default, as.table is FALSE, specifying the standard panel order
from left to right, bottom to top.
If as.table is TRUE, the panel order is left to right, top to bottom.
For an example of when this order may be useful, see example.calendar.
- between:
-
a list with components named x and y, numeric vectors
that specify the space between the columns and rows of the displayed panels.
The units for between are in character heights.
- data:
-
an optional data frame or
list in which to find the objects mentioned in formula.
When the data= argument is included, objects in formula are
not
searched for in the frame of the caller.
Thus, if you write a
function that calls a trellis routine and gives a data= argument,
no objects defined in your function will be accessible, nor will
arguments to your function be accessible.
Regardless of the data= argument, objects are always accessible
if they are on the database search list.
- formula:
-
formula defining the response and the predictors.
In general, its form is:
y ~ x | g1 * g2 * ...
however the given variables g1, g2, ... may be omitted.
The y variable is plotted on the y axis
and x plotted on the x axis.
The x and y variables are generally numeric and define the data
on each panel
The given variables determine how many panels are produced.
Given variables can be either factors or shingles; numeric given variables
are turned into shingles, character variables into factors.
All variables in the formula must of vectors
of equal length.
The formula may also contain expressions for the variables, e.g.
sqrt(count) or log(age+1).
If a character vector is a given variable, it is converted to a factor;
a numeric given vector is converted to a shingle.
Missing values (NA) are allowed.
Any points containing missing values will be omitted from the plot.