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 explains 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 among 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
y_{1} +
y_{2} ~
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` , then the `lattice` function will plot both
y_{1} ~
X | Z and
y_{2} ~
X | Z superimposed on
the same panel. However, if you set `allow.multiple=FALSE` , then the lattice
function will plot
I(y_{1}
+ y_{2}) ~
X | Z (summing
y_{1} +
y_{2}). |

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 ... |

Start Free Trial

No credit card required