simpleKey

0th

Percentile

Function to generate a simple key

Simple interface to generate a list appropriate for draw.key

Keywords
dplot
Usage
simpleKey(text, points = TRUE,
          rectangles = FALSE,
          lines = FALSE,
          col, cex, alpha, font,
          fontface, fontfamily, 
          lineheight, ...)
Details

A lattice plot can include a legend (key) if an appropriate list is specified as the key argument to a high level Lattice function such as xyplot. This key can be very flexible, but that flexibility comes at the cost of this list being very complicated even in simple situations. The simpleKey function is a shortcut, which assumes that the key is being drawn in conjunction with the groups argument, and that the default Trellis settings are being used. At most one each of points, rectangles and lines can be drawn.

See also the auto.key argument for high level plots.

Value

A list that would work as the key argument to xyplot etc.

See Also

draw.key, xyplot, Lattice

Aliases
Documentation reproduced from package lattice, version 0.17-10, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.