\Header{simpleKey}{Function to generate a simple key}
\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, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{text}] character or expression vector, giving levels of grouping
variable

\item[\code{points}] logical
\item[\code{rectangles}] logical
\item[\code{lines}] logical
\item[\code{...}] arguments added to the list, finally 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@stat.wisc.edu}
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{draw.key}}, \code{\Link{xyplot}}, \code{\Link{Lattice}}
\end{SeeAlso}

