plot.variogram {geoR} | R Documentation |
Plot Empirical Variogram
Description
Plots sample (empirical) variogram computed using the
function variog
.
Usage
## S3 method for class 'variogram'
plot(x, max.dist, vario.col = "all", scaled = FALSE,
var.lines = FALSE, envelope.obj = NULL,
pts.range.cex, bin.cloud = FALSE, ...)
Arguments
x |
an object of the class |
max.dist |
maximum distance for the x-axis. The default is the maximum distance for which the sample variogram was computed. |
vario.col |
only used if |
scaled |
If |
var.lines |
If |
envelope.obj |
adds a variogram envelope computed by
the function |
pts.range.cex |
optional. A two elements vector with maximum and
minimum values for the caracter expansion factor |
bin.cloud |
logical. If |
... |
other arguments to be passed to the function
|
Details
This function plots empirical variograms.
Toghether with lines.variogram
can be used to compare sample variograms of different variables
and
to compare variogram models against the
empirical variogram.
It uses the function matplot
when plotting variograms
for more them one variable.
Value
Produces a plot with the sample variogram on the current graphics device. No values are returned.
Author(s)
Paulo Justiniano Ribeiro Jr. paulojus@leg.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk
References
Further information on the package geoR can be found at:
http://www.leg.ufpr.br/geoR/.
See Also
variog
for variogram calculations,
lines.variogram
and lines.variomodel
for
adding lines to the current plot,
variog.model.env
and variog.mc.env
for
variogram envelops computation, matplot
for multiple
lines plot
and plot
for generic plot function.
Examples
op <- par(no.readonly = TRUE)
sim <- grf(100, cov.pars=c(1, .2)) # simulates data
vario <- variog(sim, max.dist=1) # computes sample variogram
par(mfrow=c(2,2))
plot(vario) # the sample variogram
plot(vario, scaled = TRUE) # the scaled sample variogram
plot(vario, max.dist = 1) # limiting the maximum distance
plot(vario, pts.range = c(1,3)) # points sizes proportional to number of pairs
par(op)