plot.mgram {ecodist}R Documentation

Plot a Mantel correlogram

Description

Plot a Mantel correlogram from an object of S3 class mgram, using solid symbols for significant values.

Usage

## S3 method for class 'mgram':
plot(x, pval = 0.05, xlab = "Distance", ylab = "Mantel r", ...)

Arguments

x an object of class mgram
pval cut-off level for statistical significance.
xlab x-axis label.
ylab y-axis label.
... optional, any additional graphics parameters.

Value

draws a plot (graphics device must be active).

Author(s)

Sarah Goslee, Sarah.Goslee@ars.usda.gov

See Also

mgram

Examples

## Not run: 
# generate a simple surface
x <- matrix(1:10, nrow=10, ncol=10, byrow=FALSE)
y <- matrix(1:10, nrow=10, ncol=10, byrow=TRUE)
z <- x + 3*y
image(z)

# analyze the pattern of z across space
space <- cbind(as.vector(x), as.vector(y))
z <- as.vector(z)
space.d <- distance(space, "eucl")
z.d <- distance(z, "eucl")
z.mgram <- mgram(z.d, space.d, nperm=0)
plot(z.mgram)
## End(Not run)

[Package ecodist version 1.2.2 Index]