Using the vegan R package to ecological distances (CC188)
The vegan R package has a powerful set of functions for calcuating the ecological distance between communities. In this episode, Pat shares how to get your data in the right format to use vegdist and avgdist prior to analyzing the distances using NMDS. He discusses using rarefaction with avgdist to control for uneven sampling effort since the Bray-Curtis dissimilarity index is sensitive to uneven sampling effort. We’ll use the metaMDS function from vegan and tools from ggplot2 and the tidyverse packages.
Code
You can browse the state of the repository at the