Learn R Programming

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

fields (version 6.6.3)

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, robust, and thin plate splines, and Kriging 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 with the fields interface can be used for spatial prediction. Some tailored optimization functions are supplied for find 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 a sparse matrix methods for large data sets and currently requires the sparse matrix (spam) package for testing (but not for the standard spatial functions.) Use help(fields) to get started and for an overview. The fields source code is heavily commented and should provide useful explanation of numerical details in addition to the manual pages.

Copy Link

Version

Install

install.packages('fields')

Monthly Downloads

43,868

Version

6.6.3

License

GPL (>= 2)

Maintainer

Douglas Nychka

Last Published

January 3rd, 2012

Functions in fields (6.6.3)

ozone

Data set of ozone measurements at 20 Chicago monitoring stations.
rat.diet

Experiment studying an appetite supressant in rats.
as.image

Creates image from irregular x,y,z
print.Krig

Print kriging fit results.
Exponential, Matern, Radial Basis

Covariance functions
transformx

Linear transformation
predict.derivative

Predicted derivatives
xline

Draw a vertical line
splint

Cubic spline interpolation
tim.colors

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

Quantile or Robust spline regression
summary.Krig

Summary for Krig spatial process estimate
summary.ncdf

Summarizes a netCDF file handle
stats.bin

Bins data and finds some summary statistics.
predict.se

Standard errors of predictions
fields.hints

fields - graphics hints
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.
gcv.Krig

Finds profile likelihood and GCV estimates of smoothing parameters for splines and Kriging.
bplot.xy

Boxplots for conditional distribution
The Engines:

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

Computes Space-Filling "Coverage" designs using Swapping Algorithm
REML.test

Maximum Likelihood estimates for some Matern covariance parameters.
spam2lz

Conversion of formats for sparse matrices
grid list

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

Response surface experiment ionizing a reagent
Krig.null.function

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

Plot of the US with state boundaries
fields testing scripts

Testing fields functions
fields.grid

Using MKrig for predicting on a grid.
quilt.plot

Image plot for irregular spatial data.
as.surface

Creates an "surface" object from grid values.
Wendland

Wendland family of covariance functions and supporting numerical functions
sim.rf

Simulates a random field
smooth.2d

Kernel smoother for irregular 2-d data
set.panel

Specify a panel of plots
pushpin

Adds a "push pin" to an existing 3-d plot
image.cov

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

Evaluation of Krig spatial process estimate.
ribbon.plot

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

Daily 8-hour ozone averages for sites in the Midwest
Covariance functions

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

Evaluates a fitted function or its standard errors as a surface object
Tps

Thin plate spline regression
image.plot

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

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

Plot of the world
CO2

Simulated global CO2 observations
stats

Calculate summary statistics
yline

Draw horizontal lines
colorbar.plot

Adds color scale strips to an existing plot.
krig.image

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

Adds an image to an existing plot.
Wimage.cov

Functions for W-transform based covariance models
interp.surface

Fast bilinear interpolator from a grid.
Krig

Kriging surface estimate
vgram.matrix

Computes a variogram from an image
surface.Krig

Plots a surface and contours
sreg

Smoothing spline regression
Krig.Amatrix

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

boxplot
Wimage.info

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

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

Diagnostic and summary plots of a Kriging or spline object
Colorado Monthly Meteorological Data

Monthly surface meterology for Colorado 1895-1997
plot.Wimage

Plots 2-d wavelet coefficents by level and type
vgram

Finds a traditional or robust variogram for spatial data.
fields-stuff

Fields supporting functions
plot.surface

Plots a surface
poisson.cov

Poisson spherical covariance function
US.dat

Outline of coterminous US and states.
fields internal

Fields internal and secondary functions
arrow.plot

Adds arrows to a plot
image.smooth

Kernel smoother for irregular 2-d data
image2lz

Some simple functions for subsetting images
rdist

Euclidean distance matrix
WorldBankCO2

Carbon emissions and demographic covariables by country for 1999.
Wtransform

Quadratic W wavelet transform for 1-d vectors or rectangular or cylindrical images
Wimage.info.plot

Plot to check 2-d multiresolution indexing
sim.Krig

Conditonal simulation of a spatial process
minitri

Mini triathlon results
rdist.earth

Great circle distance matrix
fields exported FORTRAN

FORTRAN subroutines used in fields functions
mKrig

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

Standard errors of predictions for Krig spatial process estimate
fields

fields - tools for spatial data
RCMexample

3-hour precipitation fields from a regional climate model
lennon

Gray image of John Lennon.
W.info

Gives indexing imfomration for a wavelet decompostion
poly.image

Image plot for cells that are irregular quadrilaterals.