Description Usage Arguments Author(s) See Also Examples
View source: R/evgram-xyplot.R
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.
1 | xyplot.evgram(x, ..., split = FALSE)
|
x |
An |
... |
Additional arguments to pass the |
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. |
Joshua French
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.