autoplot.evgram {gear}R Documentation

Plot evgram object

Description

Plot an evgram object produced by the evgram function. The plotting function internally calls the autoplot function. Note: the ggplot2 package must be loaded (i.e., library(autplot) or ggplot2::autoplot must be specifically called for this function to work. See Examples.

Usage

autoplot.evgram(object, ..., split = FALSE)

Arguments

object

An evgram object produced by the evgram function.

...

Not used

split

A logical value indicating whether, for a directional semivariogram, the directional semivariograms should be displayed in a single or split panels. Default is FALSE, for a single panel.

Author(s)

Joshua French

Examples

data(co)
v = evgram(Al ~ 1, co, ~ easting + northing)
if (requireNamespace("ggplot2")) {
   ggplot2::autoplot(v)
}
v2 = evgram(Al ~ 1, co, ~ easting + northing, angle = 22.5, ndir = 4)
# ggplot2 must manually be loaded for this to work
if (requireNamespace("ggplot2")) {
   ggplot2::autoplot(v2)
   ggplot2::autoplot(v2, split = TRUE)
}

[Package gear version 0.3.4 Index]