January 2010
Beginner
634 pages
19h 50m
English
Most lattice functions share common arguments; the same argument has a similar effect in multiple functions. This section describes what each of those arguments does. Additionally, this section will explain how to fine-tune the output of lattice functions.
Lattice functions share many common arguments. Instead of explaining what each function does separately I’ll explain them in a single table. (Note that the default values for many of these arguments, in particular the panel functions, aren’t the same between functions.)
| Argument | Description |
|---|---|
| x | The object to plot. May be a formula, array, numeric vector, or table. |
| data | When x is a
formula, data is a data
frame in which the function is evaluated. |
| allow.multiple | Specifies how to interpret formulas of the form
y1 +
y2 ~
X | Z (where
X is a function of multiple variables
and Z may also be a function of
multiple variables). By default, if allow.multiple=TRUE, the lattice
function will plot both
y1 ~
X | Z and
y2 ~
X | Z superimposed
on the same panel. However, if you set allow.multiple=FALSE, then the
lattice function will plot
I(y1
+ y2) ~
X | Z (summing
y1 +
y2). |
| outer | Specifies whether to superimpose plots or not when
allow.multiple=TRUE and
multiple dependent variables are specified. When outer=FALSE, the plots are
superimposed; when outer=TRUE, plots are shown in
different panels. |
| box.ratio | For plots that show data in rectangles (bwplot, barchart, and stripplot), a numeric value ... |
Read now
Unlock full access