Learn R Programming

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

fields (version 4.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, 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

4.3

License

GPL (>= 2)

Maintainer

Douglas Nychka

Last Published

October 1st, 2024

Functions in fields (4.3)

fields

fields - tools for spatial data
yline

Draw horizontal lines
as.image

Creates image from irregular x,y,z
fields-stuff

Fields supporting functions
rat.diet

Experiment studying an appetite supressant in rats.
US.dat

Outline of coterminous US and states.
Wimage.info.plot

Plot to check 2-d multiresolution indexing
print.Krig

Print kriging fit results.
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.
pushpin

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

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

Boxplots for conditional distribution
W.info

Gives indexing imfomration for a wavelet decompostion
minitri

Mini triathlon results
predict.se

Standard errors of predictions
add.image

Adds an image to an existing plot.
US

Plot of the US with state boundaries
as.surface

Creates an "surface" object from grid values.
Exponential, Matern

Covariance functions
set.panel

Specify a panel of plots
Krig.null.function

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

3-hour precipitation fields from a regional climate model
xline

Draw a vertical line
tim.colors

Some useful color tables for images.
splint

Cubic spline interpolation
rdist

Euclidean distance matrix
poisson.cov

Poisson spherical covariance function
rdist.earth

Great circle distance matrix
sim.rf

Simulates a random field
stats.bin

Bins data and finds some summary statistics.
RMprecip

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

fields - graphics hints
stats

Calculate summary statistics
summary.Krig

Summary for Krig spatial process estimate
ozone

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

Quantile or Robust spline regression
lennon

Gray image of John Lennon.
Tps

Thin plate spline regression
ozone2

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

Diagnostic and summary plots of a Kriging or spline object
Wimage.cov

Functions for W-transform based covariance models
vgram

Finds a traditional or robust variogram for spatial data.
image.cov

Exponential, Matern and general covariance functions for 2-d gridded locations.
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
Wendland

Wendland family of covariance functions
gcv.Krig

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

Exponential family, radial basis functions, compactly supported Wendland family and stationary covariances.
plot.surface

Plots a surface
interp.surface

Fast bilinear interpolator from a grid.
image.plot

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

boxplot
smooth.2d

Kernel smoother for irregular 2-d data
krig.image

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

Finds key indices related to a 2-d multiresolution
image2lz

Some simple functions for subsetting images
world

Plot of the world
colorbar.plot

Adds color scale strips to an existing plot.
fields testing scripts

Testing fields functions
flame

Response surface experiment ionizing a reagent
cover.design

Computes Space-Filling "Coverage" designs using Swapping Algorithm
sim.Krig

Conditonal simulation of a spatial process
drape.plot

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

Image plot for irregular spatial data.
Wtransform

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

Linear transformation
surface.Krig

Plots a surface and contours
vgram.matrix

Computes a variogram from an image
The Engines:

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

Image plot for cells that are irregular quadrilaterals.
predict.Krig

Evaluation of Krig spatial process estimate.
predict.surface

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

Spatial process estimate of a curve or surface, "kriging" with a known covariance function
%d*%-methods

Multiplying diagonal matrices in Package `fields'
image.smooth

Kernel smoother for irregular 2-d data
Krig

Kriging surface estimate
fields internal

Fields internal and secondary functions
sreg

Smoothing spline regression
plot.Wimage

Plots 2-d wavelet coefficents by level and type
spam2lz

Conversion of formats for sparse matrices
arrow.plot

Adds arrows to a plot
summary.ncdf

Summarizes a netCDF file handle