\HeaderA{prmat}{Evaluate Kriging Surface over a Grid}{prmat}
\keyword{spatial}{prmat}
\begin{Description}\relax
Evaluate Kriging surface over a grid.
\end{Description}
\begin{Usage}
\begin{verbatim}
prmat(obj, xl, xu, yl, yu, n)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{obj}] object returned by \code{surf.gls}

\item[\code{xl}] limits of the rectangle for grid

\item[\code{xu}] 
\item[\code{yl}] 
\item[\code{yu}] 
\item[\code{n}] use \code{n}  x  \code{n} grid within the rectangle

\end{ldescription}
\end{Arguments}
\begin{Value}
list with components \code{x}, \code{y} and \code{z} suitable for \code{contour} and \code{image}.
\end{Value}
\begin{References}\relax
Ripley, B. D. (1981) \emph{Spatial Statistics.} Wiley.

Venables, W. N. and Ripley, B. D. (2002)
\emph{Modern Applied Statistics with S.} Fourth edition.  Springer.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{surf.gls}{surf.gls}}, \code{\LinkA{trmat}{trmat}}, \code{\LinkA{semat}{semat}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(topo, package="MASS")
topo.kr <- surf.gls(2, expcov, topo, d=0.7)
prsurf <- prmat(topo.kr, 0, 6.5, 0, 6.5, 50)
contour(prsurf, levels=seq(700, 925, 25))
\end{ExampleCode}
\end{Examples}

