Learn R Programming

PrevMap (version 1.5.4)

variogram: The empirical variogram

Description

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.

Usage

variogram(data, var.name, coords, ...)

Arguments

data

an object of class "data.frame" containing the data.

var.name

a formula object indicating the variable to display.

coords

a formula object indicating the geographical coordinates.

...

additional arguments to be passed to variog.

Value

An object of the class "variogram" which is list containing components as detailed in variog.