13.07.2015 Views

The gstat Package - NexTag Supports Open Source Initiatives

The gstat Package - NexTag Supports Open Source Initiatives

The gstat Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

44 variogramvariogramCalculate Sample or Residual Variogram or Variogram CloudDescriptionCalculates the sample variogram from data, or in case of a linear model is given, for the residuals,with options for directional, robust, and pooled variogram, and for irregular distance intervals.Usage## S3 method for class 'formula':variogram(object, ...)## S3 method for class '<strong>gstat</strong>':variogram(formula, locations, data, ...)## Default S3 method:variogram(y, locations, X, cutoff, width = cutoff/15, alpha =0, beta = 0, tol.hor = 90/length(alpha), tol.ver =90/length(beta), cressie = FALSE, dX = numeric(0), boundaries =numeric(0), cloud = FALSE, trend.beta = NULL, debug.level = 1,cross = TRUE, grid, map = FALSE, g = NULL, ..., projected = TRUE)## S3 method for class 'line':variogram(..., deprecate = TRUE)## S3 method for class '<strong>gstat</strong>Variogram':print(v, ...)## S3 method for class 'variogramCloud':print(v, ...)Argumentsobjectformuladatalocationsobject of class <strong>gstat</strong>; in this form, direct and cross (residual) variograms arecalculated for all variables and variable pairs defined in objectformula defining the response vector and (possible) regressors, in case of absenceof regressors, use e.g. z~1data frame where the names in formula are to be foundspatial data locations. For variogram.formula: a formula with only the coordinatevariables in the right hand (explanatory variable) side e.g. ~x+y; seeexamples.For variogram.default: list with coordinate matrices, each with the number ofrows matching that of corresponding vectors in y; the number of columns shouldmatch the number of spatial dimensions spanned by the data (1 (x), 2 (x,y) or 3(x,y,z)).... any other arguments that will be passed to variogram.default (ignored)yXlist with for each variable the vector with responses(optional) list with for each variable the matrix with regressors/covariates; thenumber of rows should match that of the correspoding element in y, the numberof columns equals the number of regressors (including intercept)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!