variogram(object, ...)
variogram(formula, locations, data, ...)
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, 
	...)
print.variogram(v, ...)
print.variogram.cloud(v, ...)gstat; in this form, direct
and cross (residual) variograms are calculated for all variables and
variable pairs defined in objectz~1~x+y; see examples. For variogram.default: a matrix, with the number of rows matching that of y,
gstat and has more than one variablevariogram or variogram.cloud
to be printedvariogram.cloud see belownp encoding the numbers of the point pair that contributed to a
variogram cloud estimate, as follows. The first point is found by the
integer division of np by $2^{16}$, the second point by the remainder
of that division. print.variogram.cloud shows no np field,
but does show in addition:data(meuse)
# no trend:
variogram(log(zinc)~1, loc=~x+y, meuse)
# residual variogram w.r.t. a linear trend:
variogram(log(zinc)~x+y, loc=~x+y, meuse)
# directional variogram:
variogram(log(zinc)~x+y, loc=~x+y, meuse, alpha=c(0,45,90,135))Run the code above in your browser using DataLab