xyplot.evgram: Plot 'evgram' object

Description Usage Arguments Author(s) See Also Examples

View source: R/evgram-xyplot.R

Description

Plots evgram object produced by the evgram function using the xyplot function. Note: the lattice package must be loaded (i.e., library(lattice) or lattice::xyplot must be specifically called for this function to work. See Examples.

Usage

1

Arguments

x

An evgram object produced by the evgram function.

...

Additional arguments to pass the xyplot function to change aspects of the plot.

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

See Also

xyplot, evgram

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data(co)
v = evgram(Al ~ 1, co, ~ easting + northing)
if (requireNamespace("lattice")) {
   lattice::xyplot(v)
}
v2 = evgram(Al ~ 1, co, ~ easting + northing, angle = 22.5, ndir = 4)
if (requireNamespace("lattice")) {
   lattice::xyplot(v2)
   # show how attributes can be changed using different
   # arguments available in lattice::xyplot.
   lattice::xyplot(v2, col = 2:5)
   lattice::xyplot(v2, col = 2:5, pch = 1:4)
   lattice::xyplot(v2, col = 2:5, pch = 1:4, lty = 2:5, type = "b")
   lattice::xyplot(v2, col = 2:5, pch = 1:4, lty = 2:5, type = "b",
    key=list(text=list(levels(as.factor(v2$semi$angle))),
    space='right', points=list(pch=1:4, col=2:5),
    lines=list(col=2:5, lty = 2:5)))
   lattice::xyplot(v2, split = TRUE)
}

gear documentation built on April 14, 2020, 5:12 p.m.

Related to xyplot.evgram in gear...