\HeaderA{draw.key}{Produce a Legend or Key}{draw.key}
\keyword{dplot}{draw.key}
\begin{Description}\relax
Produces (and possibly draws) a Grid frame grob which is a legend (aka 
key) that can be placed in other Grid plots.
\end{Description}
\begin{Usage}
\begin{verbatim}
draw.key(key, draw=FALSE, vp=NULL)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{key}] A list determining the key. See documentation for
\code{xyplot}, in particular the section describing the \code{key}
argument, for details.

\item[\code{draw}] logical, whether the grob is to be drawn. 
\item[\code{vp}] viewport 
\end{ldescription}
\end{Arguments}
\begin{Value}
A Grid frame object (that inherits from \sQuote{grob}).
\end{Value}
\begin{Author}\relax
Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{xyplot}{xyplot}}
\end{SeeAlso}

