gmGeostats (version 0.11.3)

as.gstatVariogram: Represent an empirical variogram in "gstatVariogram" format

Description

Represent an empirical variogram in "gstatVariogram" format, from package "gstat"; see gstat::variogram() for details.

Usage

as.gstatVariogram(vgemp, ...)

# S3 method for default as.gstatVariogram(vgemp, ...)

# S3 method for gmEVario as.gstatVariogram(vgemp, ...)

# S3 method for logratioVariogram as.gstatVariogram( vgemp, V = NULL, dir.hor = 0, dir.ver = 0, prefix = NULL, ... )

# S3 method for logratioVariogramAnisotropy as.gstatVariogram(vgemp, V = NULL, ...)

Value

The function returns an object of class "gstatVariogram" containing the empirical variogram provided. See gstat::variogram() for details.

Arguments

vgemp

empirical variogram of any kind

...

further parameters (for generic functionality)

V

eventually, indicator of which logratio should be used (one of: a matrix of logcontrasts, or of the strings "ilr", "alr" or "clr")

dir.hor

eventually, which horizontal direction is captured by the variogram provided (seldom to be touched!)

dir.ver

eventually, which vertical direction is captured by the variogram provided (seldom to be touched!)

prefix

prefix name to use for the variables created (seldom needed)

Methods (by class)

  • default: Represent an empirical variogram in "gstatVariogram" format

  • gmEVario: Represent an empirical variogram in "gstatVariogram" format (not yet available)

  • logratioVariogram: Represent an empirical variogram in "gstatVariogram" format

  • logratioVariogramAnisotropy: Represent an empirical variogram in "gstatVariogram" format

Examples

Run this code
data("jura", package = "gstat")
X = jura.pred[,1:2]
Zc = compositions::acomp(jura.pred[,7:13])
lrvg = gmGeostats::logratioVariogram(data=Zc, loc=X)
as.gstatVariogram(lrvg, V="alr")

Run the code above in your browser using DataLab