\HeaderA{simpleKey}{Function to generate a simple key}{simpleKey}
\keyword{dplot}{simpleKey}
\begin{Description}\relax
Simple interface to generate a list appropriate for \code{draw.key}
\end{Description}
\begin{Usage}
\begin{verbatim}
simpleKey(text, points = TRUE,
          rectangles = FALSE,
          lines = FALSE,
          col, cex, alpha, font,
          fontface, fontfamily, 
          lineheight, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{text}] character or expression vector, to be used as labels for levels of
the grouping variable

\item[\code{points}] logical 
\item[\code{rectangles}] logical 
\item[\code{lines}] logical 
\item[\code{col, cex, alpha, font, fontface, fontfamily, lineheight}] Used as top-level components of the list produced, to be used for
the text labels. Defaults to the values in
\code{trellis.par.get("add.text")}

\item[\code{...}] further arguments added to the list, eventually passed to
\code{draw.key}

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
A lattice plot can include a legend (key) if an appropriate list is
specified as the \code{key} argument to a high level Lattice function
such as \code{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 \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 are
being used. At most one each of points, rectangles and lines can be
drawn.

See also the \code{auto.key} argument for high level plots.
\end{Details}
\begin{Value}
A list that would work as the \code{key} argument to \code{xyplot}
etc.
\end{Value}
\begin{Author}\relax
Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{draw.key}{draw.key}}, \code{\LinkA{xyplot}{xyplot}}, \code{\LinkA{Lattice}{Lattice}}
\end{SeeAlso}

