View source: R/stVariogramModels.R
| variogramSurface | R Documentation | 
Generates a surface of semivariance values given a spatio-temporal variogram model (one of separable, productSum, sumMetric, simpleSumMetric or metric)
variogramSurface(model, dist_grid, covariance = FALSE)
model | 
 A spatio-temporal variogram model generated through   | 
dist_grid | 
 A data.frame with two columns:   | 
covariance | 
 Whether the covariance should be computed instead of the variogram (default: FALSE).  | 
A data.frame with columns spacelag, timelag and gamma.
Benedikt Graeler
See variogramLine for the spatial version and fit.StVariogram for the estimation of spatio-temporal variograms.
separableModel <- vgmST("separable", 
                        space=vgm(0.86, "Exp", 476, 0.14),
                        time =vgm(   1, "Exp",   3, 0),
                        sill=113)
data(vv)
if(require(lattice)) {
plot(vv, separableModel, wireframe=TRUE, all=TRUE)
}
# plotting of sample and model variogram
plot(vv, separableModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.