Using the mantel test to compare ecological matrices using the vegan R package (CC211)
The Mantel test is useful for comparing distances matrices and is straightforward to do with the mantel function from the vegan R package. In this Code Club, Pat will use the Mantel test to compare bin-based and phylogenetic beta diversity matrices (weighted and unweighted UniFrac) and to compare membership and structure based metrics of beta diversity. What correlates with what? He’ll answer this question using data generated with mothur and R functions from vegan
, dplyr
, and ggplot2
.
Code
You can browse the state of the repository at the