Learn R Programming

variosig (version 0.3-1)

envplot: Plot Empirical Variogram and its Pointwise Envelope

Description

Plot empirical variogram and its pointwise variogram envelope.

Usage

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.

See Also

envelope to use Monte Carlo permutations for generating variogram envelope.

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab