Learn R Programming

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

fields (version 7.1)

Tools for spatial data

Description

Fields is for curve, surface and function fitting with an emphasis on splines, spatial data and spatial statistics. The major methods include cubic, and thin plate splines, Kriging and compact covariances for large data sets. The splines and Kriging methods are supporting by functions that can determine the smoothing parameter (nugget and sill variance) by cross validation and also by restricted maximum likelihood. A major feature is that any covariance function implemented in R and following a simple fields format can be used for spatial prediction. Some tailored optimization functions are supplied for finding the MLEs for the Matern family of covariances. There are also many useful functions for plotting and working with spatial data as images. This package also contains an implementation of sparse matrix methods for large spatial data sets and currently requires the sparse matrix (spam) package. But spam is not required for the standard spatial functions. Use help(fields) to get started and for an overview. The fields source code is heavily commented and provides useful explanations of numerical details in addition to the manual pages.

Copy Link

Version

Install

install.packages('fields')

Monthly Downloads

43,868

Version

7.1

License

GPL (>= 2)

Maintainer

Douglas Nychka

Last Published

May 16th, 2014

Functions in fields (7.1)

bplot.xy

Boxplots for conditional distribution
colorbar.plot

Adds color scale strips to an existing plot.
CO2

Simulated global CO2 observations
arrow.plot

Adds arrows to a plot
NorthAmericanRainfall

Observed North American summer precipitation from the historical climate network.
rat.diet

Experiment studying an appetite supressant in rats.
lennon

Gray image of John Lennon.
flame

Response surface experiment ionizing a reagent
Krig.Amatrix

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

3-hour precipitation fields from a regional climate model
fields-stuff

Fields supporting functions
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.
RMprecip

Monthly total precipitation (mm) for August 1997 in the Rocky Mountain Region and some gridded 4km elevation data sets (m).
ozone2

Daily 8-hour ozone averages for sites in the Midwest
set.panel

Specify a panel of plots
stats.bin

Bins data and finds some summary statistics.
ozone

Data set of ozone measurements at 20 Chicago monitoring stations.
fields testing scripts

Testing fields functions
sim.rf

Simulates a random field
plot.Krig

Diagnostic and summary plots of a Kriging or spline object
as.image

Creates image from irregular x,y,z
fields.hints

fields - graphics hints
print.Krig

Print kriging fit results.
interp.surface

Fast bilinear interpolator from a grid.
predict.surface

This older surface function has been renamed as predictSurface
US.dat

Outline of coterminous US and states.
splint

Cubic spline interpolation
summary.Krig

Summary for Krig spatial process estimate
world

Plot of the world
stats

Calculate summary statistics
fields

fields - tools for spatial data
rdist.earth

Great circle distance matrix
rdist

Euclidean distance matrix
xline

Draw a vertical line
summary.ncdf

Summarizes a netCDF file handle
add.image

Adds an image to an existing plot.
vgram.matrix

Computes a variogram from an image
fields internal

Fields internal and secondary functions
transformx

Linear transformation
quilt.plot

Image plot for irregular spatial data.
qsreg

Quantile or Robust spline regression
image.cov

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

Covariance functions
predictSE

Standard errors of predictions for Krig spatial process estimate
sim.Krig

Conditional simulation of a spatial process
Covariance functions

Exponential family, radial basis functions,cubic spline, compactly supported Wendland family and stationary covariances.
vgram

Finds a traditional or robust variogram for spatial data.
REML.test

Maximum Likelihood estimates for some Matern covariance parameters.
QTps

Robust and Quantile smoothing using a thin-plate spline
US

Plot of the US with state boundaries
sreg

Cubic smoothing spline regression
fields.grid

Using MKrig for predicting on a grid.
tim.colors

Some useful color tables for images and tools to handle them.
predictSurface

Evaluates a fitted function or the prediction error as a surface that is suitable for plotting with the image, persp, or contour functions.
Krig.null.function

Default function to create fixed matrix part of spatial process model.
plot.surface

Plots a surface
Tps

Thin plate spline regression
gcv.Krig

Finds profile likelihood and GCV estimates of smoothing parameters for splines and Kriging.
Colorado Monthly Meteorological Data

Monthly surface meterology for Colorado 1895-1997
The Engines:

Basic linear algebra utilities and other computations supporting the Krig function.
pushpin

Adds a "push pin" to an existing 3-d plot
minitri

Mini triathlon results
mKrig.MLE

Maximizes likelihood for the process marginal variance (rho) and nugget standard deviation (sigma) parameters (e.g. lambda) over a list of covariance models or a grid of covariance parameter values.
WorldBankCO2

Carbon emissions and demographic covariables by country for 1999.
yline

Draw horizontal lines
cover.design

Computes Space-Filling "Coverage" designs using Swapping Algorithm
image.smooth

Kernel smoother for irregular 2-d data
spam2lz

Conversion of formats for sparse matrices
as.surface

Creates an "surface" object from grid values.
bplot

boxplot
Wendland

Wendland family of covariance functions and supporting numerical functions
smooth.2d

Kernel smoother for irregular 2-d data
poly.image

Image plot for cells that are irregular quadrilaterals.
image.plot

Draws image plot with a legend strip for the color scale based on either a regular grid or a grid of quadrilaterals.
Krig

Kriging surface estimate
drape.plot

Perspective plot draped with colors in the facets.
surface.Krig

Plots a surface and contours
fields exported FORTRAN

FORTRAN subroutines used in fields functions
image2lz

Some simple functions for subsetting images
ribbon.plot

Adds to an existing plot, a ribbon of color, based on values from a color scale, along a sequence of line segments.
grid list

Some simple functions for working with gridded data and the grid format (grid.list) used in fields.
predict.Krig

Evaluation of Krig spatial process estimate.
mKrig

"micro Krig" Spatial process estimate of a curve or surface, "kriging" with a known covariance function.