lines.covariomodel {geoRglm} | R Documentation |
This function adds a theoretical covariogram to the current plot. The covariogram model to be added is typically with parameters estimated from the data.
## S3 method for class 'covariomodel' lines(x, max.dist = x$max.dist, ...)
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.
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)