lines.covariomodel: Line with a Covariogram Model

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

This function adds a theoretical covariogram to the current plot. The covariogram model to be added is typically with parameters estimated from the data.

Usage

1
2
## S3 method for class 'covariomodel'
lines(x, max.dist = x$max.dist, ...)

Arguments

x

an object of the class covariomodel which is a list containing information about the model parameters.

max.dist

maximum distance (x-axis) to compute and draw the line representing the covariogram model. The default is the distance given by x$max.dist.

...

arguments to be passed to the function lines.

Details

Allows theoretical covariogram(s) to be added to a plot. Together with plot.covariogram can be used to compare sample covariograms against fitted models.

Value

A line with a covariogram model is added to a plot on the current graphics device. No values are returned.

Author(s)

Ole F. Christensen OleF.Christensen@agrsci.dk,
Paulo J. Ribeiro Jr. Paulo.Ribeiro@est.ufpr.br.

References

Further information about geoRglm can be found at:
http://gbi.agrsci.dk/~ofch/geoRglm.

See Also

plot.covariogram, lines.

Examples

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)

geoRglm documentation built on May 2, 2019, 4:03 p.m.