lines.variomodel.variofit | R Documentation |
This function adds a line with the variogram model
fitted by the function
variofit
to a current variogram plot.
## S3 method for class 'variofit'
lines.variomodel(x, max.dist, scaled = FALSE, ...)
x |
an object of the class |
max.dist |
maximum distance (x-axis) to compute and draw the line
representing the variogram model.
The default is the distance given by |
scaled |
logical. If |
... |
arguments to be passed to the function
|
Adds fitted variogram model to a plot.
In conjuction with plot.variogram
can be
used to compare empirical variograms against fitted models returned by
variofit
.
A line with a variogram model is added to a plot on the current graphics device. No values are returned.
Paulo Justiniano Ribeiro Jr. paulojus@leg.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk.
Further information on the package geoR can be found at:
http://www.leg.ufpr.br/geoR/.
lines.variomodel
,
lines.variomodel.likGRF
,
plot.variogram
, lines.variogram
,
variofit
, likfit
, curve
.
# compute and plot empirical variogram
vario <- variog(s100, max.dist = 1)
plot(vario)
# estimate parameters
vario.wls <- variofit(vario, ini = c(1, .3), fix.nugget = TRUE)
# adds fitted model to the plot
lines(vario.wls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.