| lines.variomodel {geoR} | R Documentation |
This function adds a theoretical and/or fitted variogram to the current plot. The variogram model to be added is typically an output of a variogram estimation function. Alternatively, a list with the model components can be provided by the user.
lines.variomodel(obj, max.dist, scaled = FALSE,...)
obj |
an object of the class variomodel which is a list containing
information about the model parameters. |
max.dist |
maximum distance (x-axis) to compute and draw the line
representing the variogram model.
The default is the distance given by obj$max.dist. |
scaled |
logical. If TRUE the total sill in the plot is
equals to 1. |
... |
arguments to be passed to the function
lines. |
Adds variogram model(s) to a plot.
In conjuction with plot.variogram can be
used to compare sample variograms against fitted models returned by
variofit and/or likfit.
A line with a variogram model is added to a plot on the current graphics device. No values are returned.
Paulo Justiniano Ribeiro Jr. Paulo.Ribeiro@est.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk.
Further information about geoR can be found at:
http://www.maths.lancs.ac.uk/~ribeiro/geoR.html.
plot.variogram, lines.variogram,
variofit, likfit, lines.
if(is.R()) data(s100) # 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)