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

View source: R/gstatCompatibility.R

as.gstatVariogramR Documentation

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, ...)

## Default S3 method:
as.gstatVariogram(vgemp, ...)

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

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

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

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)

Value

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

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

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")

gmGeostats documentation built on April 18, 2023, 5:08 p.m.