powered by
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"), ... )
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.
fit=TRUE
numerical vector
numerical vector of the same length as x
x
(optional) the bin width of the semivariance search algorithm
(optional) the maximum number of bins to evaluate
logical. If FALSE, suppresses the graphical output
FALSE
logical. If TRUE, returns the sill, nugget and range.
TRUE
the parametric model to fit to the empirical semivariogram (only used if fit=TRUE).
optional arguments to be passed on to the generic plot function
plot
data(meuse,package='geostats') semivariogram(x=meuse$x,y=meuse$y,z=log(meuse$cadmium))
Run the code above in your browser using DataLab