variogram {spatial} | R Documentation |
Compute spatial (semi-)variogram of spatial data or residuals.
variogram(krig, nint, plotit = TRUE, ...)
krig |
trend-surface or kriging object with columns |
nint |
number of bins used |
plotit |
logical for plotting |
... |
parameters for the plot |
Divides range of data into nint
bins, and computes the average squared
difference for pairs with separation in each bin. Returns results for
bins with 6 or more pairs.
x
and y
coordinates of the variogram and cnt
,
the number of pairs averaged per bin.
Plots the variogram if plotit = TRUE
Ripley, B. D. (1981) Spatial Statistics. Wiley.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
data(topo, package="MASS") topo.kr <- surf.ls(2, topo) variogram(topo.kr, 25)