Learn R Programming

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

fields (version 5.02)

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

52,628

Version

5.02

License

GPL (>= 2)

Maintainer

Douglas Nychka

Last Published

October 1st, 2024

Functions in fields (5.02)

Exponential, Matern, Radial Basis

Covariance functions
Krig.Amatrix

Smoother (or "hat") matrix relating predicted values to the dependent (Y) 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.
US

Plot of the US with state boundaries
xline

Draw a vertical line
bplot

boxplot
arrow.plot

Adds arrows to a plot
%d*%-methods

Multiplying diagonal matrices in Package `fields'
Krig.null.function

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

Gives indexing imfomration for a wavelet decompostion
RCMexample

3-hour precipitation fields from a regional climate model
yline

Draw horizontal lines
bplot.xy

Boxplots for conditional distribution
transformx

Linear transformation
RMprecip

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

Adds an image to an existing plot.
as.surface

Creates an "surface" object from grid values.
fields.hints

fields - graphics hints
world

Plot of the world
Colorado Monthly Meteorological Data

Monthly surface meterology for Colorado 1895-1997
vgram.matrix

Computes a variogram from an image
Wimage.info

Finds key indices related to a 2-d multiresolution
Wimage.cov

Functions for W-transform based covariance models
as.image

Creates image from irregular x,y,z
vgram

Finds a traditional or robust variogram for spatial data.
US.dat

Outline of coterminous US and states.
fields internal

Fields internal and secondary functions
colorbar.plot

Adds color scale strips to an existing plot.
Covariance functions

Exponential family, radial basis functions,cubic spline, compactly supported Wendland family and stationary covariances.
The Engines:

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

Wendland family of covariance functions
Wimage.info.plot

Plot to check 2-d multiresolution indexing
Wtransform

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

Perspective plot draped with colors in the facets.
Tps

Thin plate spline regression
ozone2

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

Specify a panel of plots
rdist

Euclidean distance matrix
rat.diet

Experiment studying an appetite supressant in rats.
minitri

Mini triathlon results
ribbon.plot

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

Poisson spherical covariance function
plot.Wimage

Plots 2-d wavelet coefficents by level and type
flame

Response surface experiment ionizing a reagent
fields

fields - tools for spatial data
lennon

Gray image of John Lennon.
predict.se

Standard errors of predictions
Krig

Kriging surface estimate
plot.Krig

Diagnostic and summary plots of a Kriging or spline object
plot.surface

Plots a surface
ozone

Data set of ozone measurements at 20 Chicago monitoring stations.
image.smooth

Kernel smoother for irregular 2-d data
image2lz

Some simple functions for subsetting images
quilt.plot

Image plot for irregular spatial data.
fields testing scripts

Testing fields functions
image.cov

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

Fast bilinear interpolator from a grid.
gcv.Krig

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

Simulates a random field
mKrig

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

Conditonal simulation of a spatial process
krig.image

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

Great circle distance matrix
cover.design

Computes Space-Filling "Coverage" designs using Swapping Algorithm
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-stuff

Fields supporting functions
grid list

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

Standard errors of predictions for Krig spatial process estimate
spam2lz

Conversion of formats for sparse matrices
stats.bin

Bins data and finds some summary statistics.
predict.surface

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

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

Cubic spline interpolation
stats

Calculate summary statistics
summary.ncdf

Summarizes a netCDF file handle
tim.colors

Some useful color tables for images.
print.Krig

Print kriging fit results.
qsreg

Quantile or Robust spline regression
summary.Krig

Summary for Krig spatial process estimate
smooth.2d

Kernel smoother for irregular 2-d data
poly.image

Image plot for cells that are irregular quadrilaterals.
sreg

Smoothing spline regression
surface.Krig

Plots a surface and contours
predict.Krig

Evaluation of Krig spatial process estimate.