\Header{recordPlot}{Record and Replay Plots}
\alias{print.recordedplot}{recordPlot}
\alias{replayPlot}{recordPlot}
\keyword{iplot}{recordPlot}
\begin{Description}\relax
Functions to save the current plot in an \R{} variable, and to replay it.
\end{Description}
\begin{Usage}
\begin{verbatim}
recordPlot()
replayPlot(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A saved plot.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
These functions record and replay the displaylist of the current
graphics device.  The returned object is of class
\code{"recordedplot"}, and \code{replayPlot} acts as a \code{print}
method for that class.

The format of recorded plots was changed in \R{} 1.4.0: plots saved in
earlier versions can still be replayed.
\end{Details}
\begin{Value}
\code{recordPlot} returns an object of class \code{"recordedplot"}, a
list with components:
\begin{ldescription}
\item[\code{displaylist}] The saved display list, as a pairlist.
\item[\code{gpar}] The graphics state, as an integer vector.
\end{ldescription}


\code{replayPlot} has no return value.
\end{Value}

