Learn R Programming

gear (version 0.1.5)

plot.vgram: Plot vgram object

Description

Plots object of class 'vgram' produced by the vgram function. The plot is based on the lattice::xyplot function.

Usage

# S3 method for vgram
plot(x, ..., split = FALSE)

Arguments

x

A vgram object produced by the vgram function.

...

Additional arguments to pass the lattice::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.

See Also

xyplot, vgram

Examples

Run this code
# NOT RUN {
data(co)
v = vgram(Al ~ 1, co, ~ easting + northing)
plot(v)
v2 = vgram(Al ~ 1, co, ~ easting + northing, angle = 22.5, ndir = 4)
plot(v2)
# show how attributes can be changed using different arguments
# available in \code{lattice::xyplot}.
plot(v2, col = 2:5)
plot(v2, col = 2:5, pch = 1:4)
plot(v2, col = 2:5, pch = 1:4, lty = 2:5, type = "b")
plot(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)))
plot(v2, split = TRUE)
# }

Run the code above in your browser using DataLab