semivariogram | R Documentation |
Plots the semivariance of spatial data against inter-sample distance, and fits a spherical equation to it.
semivariogram( x, y, z, bw = NULL, nb = 13, plot = TRUE, fit = TRUE, model = c("spherical", "exponential", "gaussian"), ... )
x |
numerical vector |
y |
numerical vector of the same length as |
z |
numerical vector of the same length as |
bw |
(optional) the bin width of the semivariance search algorithm |
nb |
(optional) the maximum number of bins to evaluate |
plot |
logical. If |
fit |
logical. If |
model |
the parametric model to fit to the empirical
semivariogram (only used if |
... |
optional arguments to be passed on to the generic
|
returns a list with the estimated semivariances at
different distances for the data, and (if fit=TRUE
), a
vector with the sill, nugget and range.
data(meuse,package='geostats') semivariogram(x=meuse$x,y=meuse$y,z=log(meuse$cadmium))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.