\Header{box}{Draw a Box around a Plot}
\keyword{aplot}{box}
\begin{Description}\relax
This function draws a box around the current plot in the given color
and linetype.  The \code{bty} parameter determines
the type of box drawn.  See \code{\Link{par}} for details.\end{Description}
\begin{Usage}
\begin{verbatim}
box(which="plot", lty="solid", ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{which}] character, one of \code{"plot"}, \code{"figure"},
\code{"inner"} and \code{"outer"}.
\item[\code{lty}] line type of the box.
\item[\code{...}] further graphical parameters, such as
\code{bty}, \code{col}, or \code{lwd}, see \code{\Link{par}}.
\end{ldescription}
\end{Arguments}
\begin{SeeAlso}\relax
\code{\Link{rect}} for drawing of arbitrary rectangles.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
plot(1:7,abs(rnorm(7)), type='h', axes = F)
axis(1, labels = letters[1:7])
box(lty='137', col = 'red')
\end{ExampleCode}
\end{Examples}

