lines.variomodel.variofit
Adds a Line with a Fitted Variogram Model to a Variogram Plot
This function adds a line with the variogram model
fitted by the function
variofit
to a current variogram plot.
Usage
# S3 method for variofit
lines.variomodel(x, max.dist, scaled = FALSE, …)
Arguments
- x
an object of the class
variofit
which is a list containing information about the fitted model parameters, typically an output of the functionvariofit
.- max.dist
maximum distance (x-axis) to compute and draw the line representing the variogram model. The default is the distance given by
x$max.dist
.- scaled
logical. If
TRUE
the total sill in the plot is set to \(1\).- …
arguments to be passed to the function
curve
.
Details
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
.
Value
A line with a variogram model is added to a plot on the current graphics device. No values are returned.
References
Further information on the package geoR can be found at: http://www.leg.ufpr.br/geoR.
See Also
lines.variomodel
,
lines.variomodel.likGRF
,
plot.variogram
, lines.variogram
,
variofit
, likfit
, curve
.
Examples
# NOT RUN {
# 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)
# }