\Header{grid}{Add Grid to a Plot}
\keyword{aplot}{grid}
\begin{Usage}
\begin{verbatim}
grid(nx = 3, ny = 3, col = "lightgray", lty = "dotted")
\end{verbatim}
\end{Usage}
\begin{Description}
\texttt{grid} adds an \texttt{nx} by \texttt{ny} rectangular grid to an
existing plot, using lines of type \texttt{lty} and color \texttt{col}.\end{Description}
\begin{SeeAlso}
\texttt{\Link{plot}}, \texttt{\Link{lines}}, \texttt{\Link{points}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(iris)
plot(iris$Sepal.L, iris$Sepal.W, col = rep(1:3, rep(50, 3)),
     xlim = c(4, 8), ylim = c(2, 4.5))
grid(4, 5, lty = "solid")
\end{ExampleCode}
\end{Examples}

