envplot: Plot Empirical Variogram and its Pointwise Envelope

Description Usage Arguments Value Author(s) See Also Examples

View source: R/envplot.R

Description

Plot empirical variogram and its pointwise variogram envelope.

Usage

1
2
3
envplot(envlist, shade = TRUE, shade.color = "lightgrey",
        show.variance = FALSE, xlim = NULL, ylim = NULL,
        main = NULL, xlab = "Distance", ylab = "Semivariance")

Arguments

envlist

output from envelope function.

shade

logical. If TRUE, the envelope is shaded.

shade.color

string. Color of the envelope if it is shaded.

show.variance

logical. Plot horizontal lines showing the sample variance and its confidence interval of residuals ignoring spatial information.

xlim, ylim

x-axis and y-axis range. If NULL, default values are chosen.

main

string. Title of the plot.

xlab, ylab

string. Labels for x- and y-axis.

Value

Nothing is returned, generates a plot.

Author(s)

Craig Wang

See Also

envelope to use Monte Carlo permutations for generating variogram envelope.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(sp)
data(meuse)
coordinates(meuse) = ~x+y
vario0 <- gstat::variogram(log(zinc)~1, meuse)
varioEnv <- envelope(vario0, data = meuse, formula = log(zinc)~1, nsim = 499)
envplot(varioEnv)

## End(Not run)

variosig documentation built on Feb. 10, 2020, 1:06 a.m.