This function computes sample (empirical) variograms with options for the classical or robust estimators. Output can be returned as a binned variogram, a variogram cloud or a smoothed variogram. Data transformation (Box-Cox) is allowed. <U+201C>Trends<U+201D> can be specified and are fitted by ordinary least squares in which case the variograms are computed using the residuals.
variogram(data, var.name, coords, ...)
an object of class "data.frame" containing the data.
a formula
object indicating the variable to display.
a formula
object indicating the geographical coordinates.
additional arguments to be passed to variog
.
An object of the class "variogram" which is list containing components as detailed in variog
.