View source: R/gstatCompatibility.R
as.gstatVariogram | R Documentation |
Represent an empirical variogram in "gstatVariogram" format, from package "gstat"; see gstat::variogram()
for details.
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, ...)
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) |
The function returns an object of class "gstatVariogram" containing the empirical variogram provided.
See gstat::variogram()
for details.
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
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.