Institute for Mathematics Applied to Geosciences (IMAGe)

about fields
Commented Source
Help Pages


A collection of programs written in the R language for curve and function fitting with an emphasis on spatial data.

Authors/Contributors and Citation

Fields has drawn heavily from its predecessor, FUNFITS, to the extent that it is hard to separate who is primarily responsible for what. With that in mind, giving credit to everyone involved in FUNFITS and Fields seems appropriate. In no particular order, the Fields Development Team is: Doug Nychka, Reinhard Furrer, Steve Sain, Barbara Bailey, Stephen Ellner, Perry Haaland, Michael O'Connell, Sarah Hardy, Jungmin Baik, Wendy Meiring, J. Andrew Royle, Montserrat Fuentes, Tim Hoar, Claudia Tebaldi, and Eric Gilleland.

Citing fields
Fields Development Team (2006). fields: Tools for Spatial Data. National Center for Atmospheric Research, Boulder, CO. URL


The R version of Fields is currently available for UNIX, Linux and Windows through the Comprehensive R Archive Network (CRAN). [See the contributed packages section]. The Windows version is available as a binary, the others can be readily built in UNIX/LINUX.

Current or development version

Some major methods implemented as R functions :
Tps: Thin Plate spline regression (with GCV)
Krig: Spatial process estimate (Kriging)
All Kriging functions allow you to supply a covariance function that is written in R code.
mKrig: micro Krig Fast spatial prediction that can take advantage of compactly supported covariance functions Finds a space filling design
as.image, image.plot, quilt.plot: Some useful functions for working with data on 2-d grids.
sreg, qsreg : 1-d smoothing splines and 1-d quantile splines

There are also generic functions that support these methods such as:
plot diagnostic plots of fit
summary statistical summary of fit
surface graphical display of fitted surface
predict, evaluation fit and prediction error at arbitrary points