Rev 4194 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{D_simpleKey}\alias{simpleKey}\title{ Function to generate a simple key }\description{Simple interface to generate a list appropriate for \code{draw.key}}\usage{simpleKey(text, points = TRUE,rectangles = FALSE,lines = FALSE,col, cex, alpha, font,fontface, fontfamily,lineheight, \dots)}\arguments{\item{text}{character or expression vector, to be used as labels for levels ofthe grouping variable}\item{points}{ logical }\item{rectangles}{ logical }\item{lines}{ logical }\item{col, cex, alpha, font, fontface, fontfamily, lineheight}{Used as top-level components of the list produced, to be used forthe text labels. Defaults to the values in\code{trellis.par.get("add.text")}}\item{\dots}{further arguments added to the list, eventually passed to\code{draw.key}}}\details{A lattice plot can include a legend (key) if an appropriate list isspecified as the \code{key} argument to a high level Lattice functionsuch as \code{xyplot}. This key can be very flexible, but thatflexibility comes at the cost of this list being very complicated evenin simple situations. The \code{simpleKey} function is a shortcut,which assumes that the key is being drawn in conjunction with the\code{groups} argument, and that the default Trellis settings arebeing used. At most one each of points, rectangles and lines can bedrawn.See also the \code{auto.key} argument for high level plots.}\value{A list that would work as the \code{key} argument to \code{xyplot}etc.}\author{ Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}}\seealso{\code{\link{draw.key}}, \code{\link{xyplot}}, \code{\link{Lattice}}}\keyword{dplot}