Learn R Programming

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

fields (version 5.01)

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, multivariate 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 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.

Copy Link

Version

Install

install.packages('fields')

Monthly Downloads

43,185

Version

5.01

License

GPL (>= 2)

Maintainer

Douglas Nychka

Last Published

October 1st, 2024

Functions in fields (5.01)

Wendland

Wendland family of covariance functions
lennon

Gray image of John Lennon.
bplot

boxplot
flame

Response surface experiment ionizing a reagent
colorbar.plot

Adds color scale strips to an existing plot.
predict.surface

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

Adds arrows to a plot
Exponential, Matern

Covariance functions
fields.hints

fields - graphics hints
%d*%-methods

Multiplying diagonal matrices in Package `fields'
bplot.xy

Boxplots for conditional distribution
Colorado Monthly Meteorological Data

Monthly surface meterology for Colorado 1895-1997
as.image

Creates image from irregular x,y,z
US

Plot of the US with state boundaries
RMprecip

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

Creates an "surface" object from grid values.
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.
stats

Calculate summary statistics
ozone

Data set of ozone measurements at 20 Chicago monitoring stations.
set.panel

Specify a panel of plots
rat.diet

Experiment studying an appetite supressant in rats.
minitri

Mini triathlon results
grid list

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

Summarizes a netCDF file handle
qsreg

Quantile or Robust spline regression
ozone2

Daily 8-hour ozone averages for sites in the Midwest
add.image

Adds an image to an existing plot.
stats.bin

Bins data and finds some summary statistics.
rdist

Euclidean distance matrix
pushpin

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

Quadratic W wavelet transform for 1-d vectors or rectangular or cylindrical images
splint

Cubic spline interpolation
poisson.cov

Poisson spherical covariance function
summary.Krig

Summary for Krig spatial process estimate
The Engines:

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

Outline of coterminous US and states.
quilt.plot

Image plot for irregular spatial data.
plot.Krig

Diagnostic and summary plots of a Kriging or spline object
Krig.null.function

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

Print kriging fit results.
drape.plot

Perspective plot draped with colors in the facets.
transformx

Linear transformation
Tps

Thin plate spline regression
gcv.Krig

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

Draw horizontal lines
xline

Draw a vertical line
world

Plot of the world
Wimage.cov

Functions for W-transform based covariance models
Wimage.info.plot

Plot to check 2-d multiresolution indexing
predict.se

Standard errors of predictions
mKrig

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

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

Finds a traditional or robust variogram for spatial data.
plot.surface

Plots a surface
interp.surface

Fast bilinear interpolator from a grid.
RCMexample

3-hour precipitation fields from a regional climate model
vgram.matrix

Computes a variogram from an image
fields

fields - tools for spatial data
sreg

Smoothing spline regression
ribbon.plot

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

Conversion of formats for sparse matrices
Wimage.info

Finds key indices related to a 2-d multiresolution
image2lz

Some simple functions for subsetting images
Krig

Kriging surface estimate
surface.Krig

Plots a surface and contours
Covariance functions

Exponential family, radial basis functions,cubic spline, compactly supported Wendland family and stationary covariances.
smooth.2d

Kernel smoother for irregular 2-d data
image.smooth

Kernel smoother for irregular 2-d data
predict.se.Krig

Standard errors of predictions for Krig spatial process estimate
fields-stuff

Fields supporting functions
fields testing scripts

Testing fields functions
image.cov

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

Simulates a random field
poly.image

Image plot for cells that are irregular quadrilaterals.
tim.colors

Some useful color tables for images.
sim.Krig

Conditonal simulation of a spatial process
plot.Wimage

Plots 2-d wavelet coefficents by level and type
W.info

Gives indexing imfomration for a wavelet decompostion
rdist.earth

Great circle distance matrix
cover.design

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

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

Evaluation of Krig spatial process estimate.
image.plot

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

Fields internal and secondary functions