Evaluates a function on a surface
Usage
predict.surface(out, grid.list=NA, extrap=F, chull.mask)
Arguments
out
|
An object from fitting a function to data.
|
grid.list
|
A list with as many components as variables describing the surface.
All components should have a single value except the two that give the
grid points for evaluation. If the matrix or data frame has column names,
these must appear in the grid list.
|
chull.mask
|
To evaluate on a convex hull, NA's are assigned to outside the convex hull
of the data
|
extrap
|
Extraplolation beyond the range of the data.
|
Value
The usual list components for making contour and perspective plots along
with the component containing the grid list.See Also
tps, krig, nnreg, predict, persp, contour, interp, grid.listExamples
tps( BD[,1:4], BD$lnya)-> fit # fit surface to data
list( KCl="x", MgCl2=mean(BD[,2]),KPO4="y", dNTP=mean(BD[,4]))-> grid
# make grid
predict.surface(fit,grid) -> out.p # evalute on a grid on two
# variables holding two fixed
surface(out.p) # surface and contour plot