Description Usage Arguments Details Value Author(s) References See Also Examples
This function adds a theoretical covariogram to the current plot. The covariogram model to be added is typically with parameters estimated from the data.
1 2 |
x |
an object of the class |
max.dist |
maximum distance (x-axis) to compute and draw the line
representing the covariogram model.
The default is the distance given by |
... |
arguments to be passed to the function
|
Allows theoretical covariogram(s) to be added to a plot.
Together with plot.covariogram
can be
used to compare sample covariograms against fitted models.
A line with a covariogram model is added to a plot on the current graphics device. No values are returned.
Ole F. Christensen OleF.Christensen@agrsci.dk,
Paulo J. Ribeiro Jr. Paulo.Ribeiro@est.ufpr.br.
Further information about geoRglm can be found at:
http://gbi.agrsci.dk/~ofch/geoRglm.
1 2 3 4 5 6 7 8 9 | sim <- grf(100, cov.pars = c(0.1, 0.2))
sim$data <- rpois(100, lambda = exp(sim$data+1))
# data generated from the poisson-log normal model
covario <- covariog(sim, max.dist = 1) # sample covariogram
plot(covario)
parmval <- list(cov.model = "exponential", cov.pars = c(0.1, 0.1),
max.dist = 1, nugget = 0.01)
class(parmval) <- "covariomodel"
lines(parmval, lty = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.