fields: Tools for Spatial Data

Share:

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 supported by functions that can determine the smoothing parameter (nugget and sill variance) and other covariance parameters by cross validation and also by restricted maximum likelihood. For Kriging there is an easy to use function that also estimates the correlation scale (range). A major feature is that any covariance function implemented in R and following a simple fields format can be used for spatial prediction. 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. Use help(fields) to get started and for an overview. The fields source code is deliberately commented and provides useful explanations of numerical details in addition to the manual pages. The commented source code can be viewed by expanding the source code file (ending in tar.gz) and looking in the R subdirectory. Please cite fields along with its DOI in your publications!

Author
Douglas Nychka [aut, cre], Reinhard Furrer [aut], John Paige [aut], Stephan Sain [aut]
Date of publication
2016-05-05 23:56:26
Maintainer
Douglas Nychka <nychka@ucar.edu>
License
GPL (>= 2)
Version
8.4-1
URLs

View on CRAN

Man pages

add.image
Adds an image to an existing plot.
arrow.plot
Adds arrows to a plot
as.image
Creates image from irregular x,y,z
as.surface
Creates an "surface" object from grid values.
BD
Data frame of the effect of buffer compositions on DNA strand...
bplot
boxplot
bplot.xy
Boxplots for conditional distribution
CO
Monthly surface meterology for Colorado 1895-1997
CO2
Simulated global CO2 observations
colorbar.plot
Adds color scale strips to an existing plot.
compactToMat
Convert Matrix from Compact Vector to Standard Form
CovarianceUpper
Evaluate covariance over upper triangle of distance matrix
cover.design
Computes Space-Filling "Coverage" designs using Swapping...
drape.plot
Perspective plot draped with colors in the facets.
exp.cov
Exponential family, radial basis functions,cubic spline,...
Exponential
Covariance functions
fields
fields - tools for spatial data
fields.grid
Using MKrig for predicting on a grid.
fields.hints
fields - graphics hints
fields-internal
Fields internal and secondary functions
fields-stuff
Fields supporting functions
fields.tests
Testing fields functions
flame
Response surface experiment ionizing a reagent
FORTRAN.internal
FORTRAN subroutines used in fields functions
gcv.Krig
Finds profile likelihood and GCV estimates of smoothing...
grid.list
Some simple functions for working with gridded data and the...
image2lz
Some simple functions for subsetting images
image.cov
Exponential, Matern and general covariance functions for 2-d...
image.plot
Draws image plot with a legend strip for the color scale...
image.smooth
Kernel smoother for irregular 2-d data
interp.surface
Fast bilinear interpolator from a grid.
Krig
Kriging surface estimate
Krig.Amatrix
Smoother (or "hat") matrix relating predicted values to the...
Krig.engine.default
Basic linear algebra utilities and other computations...
Krig.null.function
Default function to create fixed matrix part of spatial...
Krig.replicates
Collapse repeated spatial locations into unique locations
lennon
Gray image of John Lennon.
minitri
Mini triathlon results
mKrig
"micro Krig" Spatial process estimate of a curve or surface,...
mKrig.MLE
Maximizes likelihood for the process marginal variance (rho)...
MLESpatialProcess
Estimates key covariance parameters for a spatial process.
NorthAmericanRainfall
Observed North American summer precipitation from the...
ozone
Data set of ozone measurements at 20 Chicago monitoring...
ozone2
Daily 8-hour ozone averages for sites in the Midwest
plot.Krig
Diagnostic and summary plots of a Kriging, spatialProcess or...
plot.surface
Plots a surface
poly.image
Image plot for cells that are irregular quadrilaterals.
predict.Krig
Evaluation of Krig spatial process estimate.
predictSE.Krig
Standard errors of predictions for Krig spatial process...
predictSurface
Evaluates a fitted function or the prediction error as a...
print.Krig
Print kriging fit results.
pushpin
Adds a "push pin" to an existing 3-d plot
qsreg
Quantile or Robust spline regression
QTps
Robust and Quantile smoothing using a thin-plate spline
quilt.plot
Image plot for irregular spatial data.
rat.diet
Experiment studying an appetite supressant in rats.
RCMexample
3-hour precipitation fields from a regional climate model
rdist
Euclidean distance matrix or vector
rdist.earth
Great circle distance matrix or vector
REML.test
Maximum Likelihood estimates for some Matern covariance...
ribbon.plot
Adds to an existing plot, a ribbon of color, based on values...
RMprecip
Monthly total precipitation (mm) for August 1997 in the Rocky...
set.panel
Specify a panel of plots
sim.Krig
Conditional simulation of a spatial process
sim.rf
Simulates a Stationary Gaussian random field
smooth.2d
Kernel smoother for irregular 2-d data
spam2lz
Conversion of formats for sparse matrices
spatialProcess
Estimates a spatial process model.
splint
Cubic spline interpolation
sreg
Cubic smoothing spline regression
stats
Calculate summary statistics
stats.bin
Bins data and finds some summary statistics.
summary.Krig
Summary for Krig or spatialProcess estimated models.
summary.ncdf
Summarizes a netCDF file handle
supportsArg
Tests if function supports a given argument
surface.Krig
Plots a surface and contours
tim.colors
Some useful color tables for images and tools to handle them.
Tps
Thin plate spline regression
transformx
Linear transformation
US
Plot of the US with state boundaries
US.dat
Outline of coterminous US and states.
vgram
Traditional or robust variogram methods for spatial data
vgram.matrix
Computes a variogram from an image
Wendland
Wendland family of covariance functions and supporting...
world
Plot of the world
WorldBank
Carbon emissions and demographic covariables by country for...
xline
Draw a vertical line
yline
Draw horizontal lines

Files in this package

fields
fields/inst
fields/inst/CITATION
fields/tests
fields/tests/Krig.test.R
fields/tests/vgram.test.R
fields/tests/Krig.se.grid.test.R
fields/tests/Krig.se.W.R
fields/tests/Krig.se.grid.test.Rout.save
fields/tests/fastTpsPredict.test.R
fields/tests/mKrig.se.test.Rout.save
fields/tests/vgram.test.Rout.save
fields/tests/fastTpsPredict.test.Rout.save
fields/tests/misc.test.Rout.save
fields/tests/test.cov.R
fields/tests/Wend.test.Rout.save
fields/tests/REMLest.test.Rout.save
fields/tests/mKrig.Z.Rout.save
fields/tests/evlpoly.test.Rout.save
fields/tests/misc.test.R
fields/tests/derivative.test.R
fields/tests/Tps.test.Rout.save
fields/tests/mKrig.parameters.test.R
fields/tests/Wend.test.R
fields/tests/mKrig.test.Rout.save
fields/tests/Krig.test.W.R
fields/tests/REMLest.test.R
fields/tests/KrigGCVREML.test.Rout.save
fields/tests/mKrig.Z.R
fields/tests/diagonal2.test.Rout.save
fields/tests/Likelihood.test.R
fields/tests/mKrig.MLE.test.Rout.save
fields/tests/Krig.Z.test.R
fields/tests/mKrig.MLE.test.R
fields/tests/Krig.test.W.Rout.save
fields/tests/cmdfile
fields/tests/diagonal2.test.R
fields/tests/diag.multiply.test.Rout.save
fields/tests/Krig.se.W.Rout.save
fields/tests/mKrig.parameters.test.Rout.save
fields/tests/Krig.se.test.Rout.save
fields/tests/spam.test.R
fields/tests/Krig.test.Rout.save
fields/tests/mKrig.test.R
fields/tests/Tps.test.R
fields/tests/derivative.test.Rout.save
fields/tests/spam.test.Rout.save
fields/tests/mKrig.se.test.R
fields/tests/KrigGCVREML.test.R
fields/tests/sreg.test.Rout.save
fields/tests/diag.multiply.test.R
fields/tests/Krig.se.test.R
fields/tests/cov.test.Rout.save
fields/tests/evlpoly.test.R
fields/tests/test.cov.Rout.save
fields/tests/cov.test.R
fields/tests/Likelihood.test.Rout.save
fields/tests/Krig.Z.test.Rout.save
fields/tests/sreg.test.R
fields/src
fields/src/rcssr.f
fields/src/dchold.f
fields/src/igpoly.f
fields/src/dcopy.f
fields/src/expfnC.c
fields/src/rcss.f
fields/src/radfn2.f
fields/src/compactToMatC.c
fields/src/ddfind.f
fields/src/addToDiagC.c
fields/src/cvrf.f
fields/src/evlpoly.f
fields/src/evlpoly2.f
fields/src/ifind.f
fields/src/mltdrb.f
fields/src/css.f
fields/src/rdist.f
fields/src/rdistC.c
fields/src/expfn.f
fields/src/sortm.f
fields/src/dlv.f
fields/src/ddot.f
fields/src/dsetup.f
fields/src/compactToMatCOLD.c
fields/src/csstr.f
fields/src/ExponentialUpperC.c
fields/src/dmaket.f
fields/src/multW.f
fields/src/inpoly.f
fields/src/radfun.f
fields/src/radbas.f
fields/src/rcsswt.f
fields/src/drdfun.f
fields/src/mltdtd.f
fields/src/multrb.f
fields/src/multebC.c
fields/src/multeb.f
fields/NAMESPACE
fields/data
fields/data/RCMexample.rda
fields/data/rat.diet.rda
fields/data/ozone2.rda
fields/data/CO2.rda
fields/data/COmonthlyMet.rda
fields/data/PRISMelevation.rda
fields/data/NorthAmericanRainfall.rda
fields/data/datalist
fields/data/US.dat.rda
fields/data/WorldBankCO2.rda
fields/data/world.dat.rda
fields/data/RMelevation.rda
fields/data/lennon.rda
fields/R
fields/R/quickPrint.R
fields/R/double.exp.R
fields/R/plot.sreg.R
fields/R/quilt.plot.R
fields/R/rdist.vec.R
fields/R/SUBSCRIPTING.spatial.design.R
fields/R/find.upcross.R
fields/R/flame.R
fields/R/cover.design.R
fields/R/colorbar.plot.R
fields/R/predictSurface.family.R
fields/R/poly.image.R
fields/R/sim.mKrig.approx.R
fields/R/parse.grid.list.R
fields/R/fields.diagonalize.R
fields/R/RMprecip.R
fields/R/MLESpatialProcess.fast.R
fields/R/smooth.2d.R
fields/R/set.panel.R
fields/R/stats.bin.R
fields/R/US.R
fields/R/MLESpatialProcess.R
fields/R/fields.color.picker.R
fields/R/dyadic.2check.R
fields/R/gcv.sreg.R
fields/R/mKrig.R
fields/R/rad.cov.R
fields/R/tim.colors.R
fields/R/arrow.plot.R
fields/R/fields.x.to.grid.R
fields/R/predictSE.R
fields/R/REMLtest.R
fields/R/fields.convert.grid.R
fields/R/surface.family.R
fields/R/wendland.family.R
fields/R/sreg.family.R
fields/R/image.plot.R
fields/R/fitted.Krig.R
fields/R/fastTps.MLE.R
fields/R/summary.spatialProcess.R
fields/R/larry.colors.R
fields/R/rdist.earth.R
fields/R/stationary.image.cov.R
fields/R/ribbon.plot.R
fields/R/minimax.crit.R
fields/R/fields.style.R
fields/R/fast.1way.R
fields/R/plot.Krig.R
fields/R/sim.Krig.R
fields/R/summary.Krig.R
fields/R/RadialBasis.R
fields/R/gauss.cov.R
fields/R/gcv.Krig.R
fields/R/fields.derivative.poly.R
fields/R/plot.spatialProcess.R
fields/R/predict.interp.surface.R
fields/R/yline.R
fields/R/plot.spatial.design.R
fields/R/plot.vgram.matrix.R
fields/R/sim.rf.R
fields/R/color.scale.R
fields/R/ChicagoO3.R
fields/R/MLEfast.R
fields/R/cubic.cov.R
fields/R/Matern.R
fields/R/radbas.constant.R
fields/R/Tps.R
fields/R/spam_2lz.R
fields/R/bplot.family.R
fields/R/summaryGCV.sreg.R
fields/R/interp.surface.R
fields/R/evlpoly.R
fields/R/matern.image.cov.R
fields/R/image.smooth.R
fields/R/rad.image.cov.R
fields/R/print.summary.spatialProcess.R
fields/R/compactToMat.R
fields/R/transformx.R
fields/R/print.Krig.R
fields/R/dyadic.check.R
fields/R/cat.to.list.R
fields/R/stationary.cov.R
fields/R/rat.diet.R
fields/R/as.image.R
fields/R/print.summary.sreg.R
fields/R/Matern.parameters.R
fields/R/sim.Krig.approx.R
fields/R/cat.matrix.R
fields/R/predict.Krig.R
fields/R/evlpoly2.R
fields/R/supportsArg.R
fields/R/rdist.R
fields/R/minitri.R
fields/R/setup.image.smooth.R
fields/R/image.family.R
fields/R/predictSEUsingKrigA.R
fields/R/world.R
fields/R/printGCVWarnings.R
fields/R/fastTps.family.R
fields/R/drape.color.R
fields/R/exp.earth.cov.R
fields/R/make.surface.grid.R
fields/R/print.spatial.design.R
fields/R/MLE.Matern.R
fields/R/exp.cov.R
fields/R/summary.sreg.R
fields/R/coef.Krig.R
fields/R/fields.rdist.near.R
fields/R/ExponentialUpper.R
fields/R/stats.R
fields/R/spatialProcess.R
fields/R/residuals.Krig.R
fields/R/exp.image.cov.R
fields/R/qsreg.family.R
fields/R/predict.sreg.R
fields/R/print.sreg.R
fields/R/vgram.matrix.R
fields/R/predictSurface.Krig.R
fields/R/print.summary.Krig.R
fields/R/in.poly.R
fields/R/fields.diagonalize2.R
fields/R/BD.R
fields/R/test.for.zero.R
fields/R/qr.yq2.R
fields/R/discretize.image.R
fields/R/rdist.earth.vec.R
fields/R/qr.q2ty.R
fields/R/splint.R
fields/R/wendland.image.cov.R
fields/R/rad.simple.cov.R
fields/R/Krig.family.R
fields/R/mKrig.family.R
fields/R/ceiling2.R
fields/R/mKrig.MLE.R
fields/R/add.image.R
fields/R/summaryGCV.Krig.R
fields/R/summary.ncdf.R
fields/R/stationary.taper.cov.R
fields/R/exp.simple.cov.R
fields/R/predictDerivative.Krig.R
fields/R/drape.plot.R
fields/R/vgram.family.R
fields/R/golden.section.search.R
fields/R/QTps.R
fields/R/fields.duplicated.matrix.R
fields/R/plot.surface.R
fields/R/print.summary.spatial.design.R
fields/R/mKrig.MLE.joint.R
fields/R/summary.spatial.design.R
fields/R/unrollZGrid.R
fields/R/predictSurfaceSE.family.R
fields/R/unscale.R
fields/R/describe.R
fields/R/interp.surface.grid.R
fields/R/Exponential.R
fields/R/bisection.search.R
fields/R/xline.R
fields/R/as.surface.R
fields/R/fields.mkpoly.R
fields/MD5
fields/README
fields/DESCRIPTION
fields/LICENSE.note
fields/man
fields/man/Krig.null.function.Rd
fields/man/colorbar.plot.Rd
fields/man/WorldBank.Rd
fields/man/supportsArg.Rd
fields/man/minitri.Rd
fields/man/fields.hints.Rd
fields/man/Krig.Rd
fields/man/Krig.engine.default.Rd
fields/man/as.image.Rd
fields/man/CO2.Rd
fields/man/REML.test.Rd
fields/man/RCMexample.Rd
fields/man/compactToMat.Rd
fields/man/transformx.Rd
fields/man/quilt.plot.Rd
fields/man/drape.plot.Rd
fields/man/add.image.Rd
fields/man/vgram.Rd
fields/man/arrow.plot.Rd
fields/man/mKrig.MLE.Rd
fields/man/image2lz.Rd
fields/man/fields.grid.Rd
fields/man/Krig.replicates.Rd
fields/man/Tps.Rd
fields/man/world.Rd
fields/man/vgram.matrix.Rd
fields/man/image.plot.Rd
fields/man/QTps.Rd
fields/man/CO.Rd
fields/man/plot.Krig.Rd
fields/man/US.Rd
fields/man/set.panel.Rd
fields/man/tim.colors.Rd
fields/man/as.surface.Rd
fields/man/fields.tests.Rd
fields/man/predictSurface.Rd
fields/man/poly.image.Rd
fields/man/image.smooth.Rd
fields/man/splint.Rd
fields/man/xline.Rd
fields/man/RMprecip.Rd
fields/man/qsreg.Rd
fields/man/stats.Rd
fields/man/ribbon.plot.Rd
fields/man/Exponential.Rd
fields/man/fields.Rd
fields/man/rdist.earth.Rd
fields/man/Krig.Amatrix.Rd
fields/man/fields-internal.Rd
fields/man/BD.Rd
fields/man/exp.cov.Rd
fields/man/lennon.Rd
fields/man/image.cov.Rd
fields/man/sim.rf.Rd
fields/man/predict.Krig.Rd
fields/man/interp.surface.Rd
fields/man/spam2lz.Rd
fields/man/predictSE.Krig.Rd
fields/man/summary.Krig.Rd
fields/man/mKrig.Rd
fields/man/US.dat.Rd
fields/man/ozone.Rd
fields/man/spatialProcess.Rd
fields/man/print.Krig.Rd
fields/man/stats.bin.Rd
fields/man/fields-stuff.Rd
fields/man/summary.ncdf.Rd
fields/man/FORTRAN.internal.Rd
fields/man/flame.Rd
fields/man/bplot.xy.Rd
fields/man/grid.list.Rd
fields/man/rdist.Rd
fields/man/MLESpatialProcess.Rd
fields/man/sim.Krig.Rd
fields/man/sreg.Rd
fields/man/surface.Krig.Rd
fields/man/plot.surface.Rd
fields/man/bplot.Rd
fields/man/cover.design.Rd
fields/man/rat.diet.Rd
fields/man/smooth.2d.Rd
fields/man/ozone2.Rd
fields/man/yline.Rd
fields/man/NorthAmericanRainfall.Rd
fields/man/gcv.Krig.Rd
fields/man/pushpin.Rd
fields/man/Wendland.Rd
fields/man/CovarianceUpper.Rd