Learn R Programming

⚠️There's a newer version (2.1.3) of this package.Take me there.

ecodist R package

Dissimilarity-based analysis functions including ordination and Mantel test functions, intended for use with spatial and community data.

CHANGES in ecodist 2.0

  • fixed bug in crosstab() that affected expansion of single-row or -column tables using allrows or allcols; changed result to data frame
  • added icov argument to distance() for use with Mahalanobis distance
  • changed stress calculation in nmds() to match vegan and MASS calculations; formerly was a similar method that was monotonically related, but not identical.
  • added plot.nmds to display stress and r2 for NMDS ordinations across a range of dimensions
  • added addord method to add new data to an existing NMDS ordination.
  • added clusterlevel to calculate Mantel tests for specified groupings
  • added logistic regression to MRM
  • added xdistance cross-distance function, and cross-dissimilarity analysis functions xmantel, xmgram
  • updated examples in help files to be more helpful
  • added a vignette listing dissimilarity-based analyses

Copy Link

Version

Install

install.packages('ecodist')

Monthly Downloads

3,231

Version

2.0.3

License

GPL (>= 2)

Maintainer

Sarah Goslee

Last Published

December 19th, 2019

Functions in ecodist (2.0.3)

bump

Nine-bump spatial pattern
bcdist

Bray-Curtis distance
graze

Site information and grazed vegetation data.
iris.nmds

Example for nmds
lower

Lower-triangular matrix
iris.vfrot

Example for vector fitting on rotated ordination
vf

Vector fitting
mgroup

Mantel test for groups
iris.fit

Example of adding to an ordination
residuals.mgram

Residuals of a Mantel correlogram
plot.mgram

Plot a Mantel correlogram
fixdmat

Distance matrix conversion
min.nmds

Find minimum stress configuration
full

Full symmetric matrix
z.z1

Example for pmgram
plot.nmds

Plot information about NMDS ordination
iris.vf

Example for vector fitting on ordination
xdistance

Cross-distance between two datasets.
xmantel

Cross-Mantel test
addord

Fit new points to an existing NMDS configuration.
pmgram

Partial Mantel correlogram
mgram

Mantel correlogram
plot.vf

Plots fitted vectors onto an ordination diagram
MRM

Multiple Regression on distance Matrices
mantel

Mantel test
pco

Principal coordinates analysis
nmds

Non-metric multidimensional scaling
xmgram

Cross-Mantel correlogram
z.no

Example for pmgram
corgen

Generate correlated data
distance

Calculate dissimilarity/distance metrics
crosstab

Data formatting
cor2m

Two-matrix correlation table
ecodist-package

Dissimilarity-Based Functions for Ecological Analysis
bump.pmgram

Nine-bump spatial pattern