MENU

Fun & Interesting

Using adonis and betadisper from the vegan R package to compare groups (CC208)

Riffomonas Project 22,142 lượt xem 2 years ago
Video Not Working? Fix It Now

In this episode of Code Club, I provide a tutorial on using the adonis and betadisper functions from the vegan R package to compare groups of microbial communities. Along the way, Pat will review how to make an ordination with indicators of the centroid and ellipses around the points. We'll also discuss how to perform analyses with two variables simultaneously. He'll demonstrate this approach by using functions from vegan, dplyr, and ggplot2.

You can find my blog post for this episode at https://www.riffomonas.org/code_club/2022-04-28-adonis-betadisper. The data were generated in our Kozich et al. 2013 paper (http://doi.org/10.1128/AEM.01043-13) using samples from the Schloss et al. 2012 paper (http://doi.org/10.4161/gmic.21008).

#microbiome #tidyverse #R #Rstudio #Rstats #ggplot2

Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at https://shop.riffomonas.org/youtube to get practice problems, tips, and insights.

If you're interested in taking an upcoming 3 day R workshop be sure to check out our schedule at https://riffomonas.org/workshops/

You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: https://www.riffomonas.org/minimalR/
General data: https://www.riffomonas.org/generalR/

0:00 Testing for differences in community structure
2:09 Creating ordinations from count data
13:43 Using adonis for single variable
17:15 Using adonis for two variables
19:44 Caveat emptor: Using betadisper

Comment