The function works as follows:
First it creates a grid using the R function
expand.grid and then it uses the geoR'
internal function
.geoR_inout() which wraps usage of SpatialPoints
and over
from the package sp to extract the points
of the grid which are inside the polygon.
Within the package geoR
this function is typically used to select points in a non-rectangular
region to perform spatial prediction
using krige.bayes, krige.conv or
ksline. It is also useful to produce
image or perspective plots of the prediction results.