| lines.grf {geoR} | R Documentation |
This functions adds to the graphics device a line with the theoretical
(true) variogram used when generating simulations with
the function grf.
lines.grf(obj, max.dist = max(dist(obj$coords)), length = 100,
lwd = 2, ...)
obj |
an object from the class grf typically an output of
the function grf. |
max.dist |
maximum distance to compute and plot the true variogram. Defaults to the maximum distance between two data locations. |
length |
number of points used to compute and draw the variogram line. |
lwd |
width of the line. |
... |
further arguments to be passed to the function
lines. |
A line with the true variogram model is added to the current plot on the graphics device. No values are returned.
Paulo J. 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.
sim <- grf(100, cov.pars=c(1, .25)) # simulates data plot(variog(sim, max.dist=1)) # plot empirical variogram lines(sim, max.dist=1) # plot true variogram