EcoGenetics (version 1.2.1-5)

plot,eco.correlog,ANY-method: globalplot

Description

Plot method for correlograms and variograms

show eco.correlog

Usage

# S4 method for eco.correlog,ANY
plot(x)

# S4 method for eco.correlog show(object)

Arguments

x

Result of correlogram or variogram analysis.

var

Variable to plot for multiple analyses with eco.correlog (see examples).

See Also

eco.correlog eco.cormantel eco.variogram

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
data(eco.test)

# single Moran's I correlogram analysis
moran.example <- eco.correlog(Z=eco[[P]][,1], eco$XY, smax=10, size=1000)
plot(moran.example)

# multiple Moran's I correlogram analysis
moran.example2 <- eco.correlog(Z=eco[[P]], eco$XY, smax=10, size=1000)
plot(moran.example2, var ="P2")
plot(moran.example2, var ="P3")

corm <- eco.cormantel(M = dist(eco[[P]]), size=1000,smax=7, XY = eco$XY,
nsim = 99)
plot(corm)

variog <- eco.variogram(Z = eco[[P]][, 2],XY =  eco$XY)
plot(variog)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace