Learn R Programming

⚠️There's a newer version (17.3) of this package.Take me there.

fields (version 3.04)

Tools for spatial data

Description

Fields is a collection of programs for curve and function fitting with an emphasis on splines, spatial data and spatial statistics. The major methods implemented include cubic, robust, and thin plate splines, universal Kriging and Kriging for large data sets. One main feature is any covariance function implemented in R can be used for spatial prediction. There are also some useful functions for plotting and working with spatial data as images. This package also contains an implementation of a smooth wavelet basis suitable for spatial models. Use help(fields) to get started and an overview.

Copy Link

Version

Install

install.packages('fields')

Monthly Downloads

43,880

Version

3.04

License

GPL Version 2 or later.

Maintainer

Douglas Nychka

Last Published

May 5th, 2026

Functions in fields (3.04)

Wimage.info.plot

Plot to check 2-d multiresolution indexing
BD

Data frame of the effect of buffer compositions on DNA strand displacement amplification. A 4-d regression data set with with replication. This is a useful test data set for exercising function fitting methods.
fields-stuff

Fields supporting functions
US.dat

Outline of coterminous US and states.
lennon

Gray image of John Lennon.
Krig.Amatrix

Smoother (or "hat") matrix relating predicted values to the dependent (Y) values.
flame

Response surface experiment ionizing a reagent
add.image

Adds an image to an existing plot.
Exponential

Covariance functions
fields

fields - tools for spatial data
drape.plot

Perspective plot draped with colors in the facets.
as.image

Creates image from irregular x,y,z
minitri

Mini triathlon results
rdist

Euclidean distance matrix
xline

Draw a vertical line
rdist.earth

Great circle distance matrix
vgram.matrix

Computes a variogram from an image
tim.colors

Tim's useful color table
sim.rf

Simulates a random field
Exponential covariances, radial basis functions and stationary covariances.

Exponential covariance family, radial basis functions and a general function for stationary covariances.
W.info

Gives indexing imfomration for a wavelet decompostion
arrow.plot

Adds arrows to a plot
krig.image

Spatial process estimate for large irregular 2-d dats sets.
yline

Draw horizontal lines
poisson.cov

Poisson spherical covariance function
print.Krig

Print kriging fit results.
RMprecip

Monthly total precipitation (mm) for August 1963 in the Rocky Mountain Region
summary.Krig

Summary for Krig spatial process estimate
plot.Wimage

Plots 2-d wavelet coefficents by level and type
ozone

Data set of ozone measurements at 20 Chicago monitoring stations.
quilt.plot

Image plot for irregular spatial data.
The Krig engines and support functions

Basic linear algebra computations supporting the Krig function.
transformx

Linear transformation
smooth.2d

Kernel smoother for irregular 2-d data
fields.hints

fields - graphics hints
as.surface

Creates an "surface" object from grid values.
cover.design

Computes Space-Filling "Coverage" designs using Swapping Algorithm
Wtransform

Quadratic W wavelet transform for 1-d vectors or rectangular or cylindrical images
image.smooth

Kernel smoother for irregular 2-d data
fields tests

Testing fields functions
predict.surface

Evaluates a fitted function or its standard errors as a surface object
surface.Krig

Plots a surface and contours
US

Plot of the US with state boundaries
qsreg

Quantile or Robust spline regression
predict.se

Standard errors of predictions
predict.Krig

Evaluation of Krig spatial process estimate.
world

Plot of the world
grid list

Grid list format for describing equally spaced grids
rat.diet

Experiment studying an appetite supressant in rats.
plot.surface

Plots a surface
fields internal

Fields internal and secondary functions
plot.Krig

Diagnostic and summary plots of a Kriging or spline object
set.panel

Specify a panel of plots
summary.ncdf

Summarizes a netCDF file handle
image.cov

Exponential, Matern and general covariance functions for 2-d gridded locations.
splint

Cubic spline interpolation
ozone2

Daily 8-hour ozone averages for sites in the Midwest
sim.Krig

Conditonal simulation of a spatial process
vgram

Finds a traditional or robust variogram for spatial data.
bplot.xy

Boxplots for conditional distribution
colorbar.plot

Plots one or more color scale strips as a symbol
gcv.Krig

Finds profile likelihood and GCV estimates of smoothing parameters
predict.se.Krig

Standard errors of predictions for Krig spatial process estimate
bplot

boxplot
stats.bin

Bins data and finds some summary statistics.
interp.surface

Fast bilinear interpolator from a grid.
sreg

Smoothing spline regression
Wimage.info

Finds key indices related to a 2-d multiresolution
image.plot

Draws image plot with a legend strip for the color scale.
Tps

Thin plate spline regression
Krig

Kriging surface estimate
stats

Calculate summary statistics
Wimage.cov

Functions for W-transform based covariance models