predict.derivative {fields} | R Documentation |
Calculates the partial derivatives.
predict.derivative(object, ...) ## Default S3 method: predict.derivative( object, ...)
object |
A fitted model object that support a |
... |
Additional arguments to be passed usually the locations to evaluate the derivatives. |
This function is generic with the default to just call predict
with
derivative=1
. There is a special version for Krig
objects because a separate function was designed to evaluate derivatives.
The target returned object is intended to be a matrix of parital derivatives. The columns being the partial derivatives and the rows the locations.
predict, predict.surface.derivative
data(ozone2) fit<- Tps( ozone2$lon.lat, ozone2$y[16,]) hold<- predict.derivative(fit) set.panel(2,1) quilt.plot( fit$x, hold[,1]) quilt.plot( fit$x, hold[,2]) # lazy plots -- better to create a grid of points and evaluate on grid. set.panel()