lattice (version 0.10-10)

panel.superpose: Panel Function for Display Marked by groups

Description

This is an useful panel function for trellis displays. Uses a grouping variable, plotting the x (and y where appropriate) variables with different graphical properties for each distinct value of the grouping variable.

Usage

panel.superpose(x, y, panel.groups = "panel.xyplot", subscripts, groups, type="p", ...)
panel.superpose.2(x, y, subscripts, groups, type="p", ...)

Arguments

x,y
coordinates of the points to be displayed
panel.groups
the panel function to be used for each group of points. Defaults to panel.xyplot (behaviour in S)
subscripts
subscripts giving indices in original data frame
groups
a grouping variable. Different graphical parameters will be used to plot the subsets of observations given by each distinct value of groups. The default graphical parameters are obtained from superpose.symbol and
type
character vector specifying what should be drawn for each group. See panel.xyplot for details of what the values can be. This is meaningful for panel.superpose only when
...
other arguments (mostly graphical parameters, replicated to be as long as the number of groups), ultimately passed down to panel.xyplot. In particular, colour can be specified using 3 arguments (col, col.line, col.symbol

synopsis

panel.superpose(x, y = NULL, subscripts, groups, panel.groups = "panel.xyplot", col, col.line = superpose.line$col, col.symbol = superpose.symbol$col, pch = superpose.symbol$pch, cex = superpose.symbol$cex, font = superpose.symbol$font, fontface = superpose.symbol$fontface, fontfamily = superpose.symbol$fontfamily, lty = superpose.line$lty, lwd = superpose.line$lwd, ...) panel.superpose.2(x, y, subscripts, groups, col, col.line = superpose.line$col, col.symbol = superpose.symbol$col, pch = superpose.symbol$pch, cex = superpose.symbol$cex, lty = superpose.line$lty, lwd = superpose.line$lwd, type="p", ...)

See Also

Different functions when used as panel.groups gives different types of plots, for example panel.xyplot, panel.dotplot and panel.linejoin (This can be used to produce interaction plots).