Learn R Programming

gstat (version 0.9-4)

variogram.line: Semivariance Values For a Given Variogram Model

Description

Generates a semivariance values given a variogram model

Usage

variogram.line(object, maxdist, n, min, ids, dir, ...)

Arguments

object
variogram model for which we want semivariance function values
maxdist
maximum distance for which we want semivariances
n
number of points
min
minimum distance; a value slightly larger than zero is usually used to avoid the discontinuity at distance zero if a nugget component is present
ids
pair of data ids
dir
direction vector: unit length vector pointing the direction in x (East-West), y (North-South) and z (Up-Down)
...
ignored

Value

  • a data frame of dimension (n x 2), with columns distance and gamma

synopsis

variogram.line(object, maxdist, n=200, min=1.0e-6*maxdist, ids=c(0,0), dir = c(1,0,0), ...)

See Also

plot.variogram

Examples

Run this code
variogram.line(vgm(5, "Exp", 10, 5), 10, 10)
# anisotropic variogram, plotted in E-W direction:
variogram.line(vgm(1, "Sph", 10, anis=c(0,0.5)), 10, 10)
# anisotropic variogram, plotted in N-S direction:
variogram.line(vgm(1, "Sph", 10, anis=c(0,0.5)), 10, 10, dir=c(0,1,0))

Run the code above in your browser using DataLab