Tools for spatial data: splines, Kriging and spatial statistics in R
open sourceGPL-2.0-or-laterfree
fields is an R package for curve, surface and function fitting with an emphasis on splines, spatial data, geostatistics and spatial statistics. Its main methods are cubic and thin plate splines, Kriging and compactly supported covariance functions for large data sets, with smoothing and covariance parameters chosen by cross-validation or restricted maximum likelihood, and any covariance function written in R in a simple format can be used for spatial prediction. It also has functions for plotting and working with spatial data as images (in base R graphics) and sparse matrix methods for large data sets through the spam package. Douglas Nychka maintains it.
Problems it solves
- fit a smooth surface to scattered spatial data in R
- do Kriging on geostatistical data in R
- interpolate measurements from weather stations onto a grid
Features
- cubic and thin plate splines
- Kriging with automatic estimation of the correlation range
- parameter selection by cross-validation or restricted maximum likelihood
- compactly supported covariances and sparse matrices for large data sets
- plotting spatial data as images with base R graphics
