---
layout: post
title: "Rarefying ecological distances with R: Should you? (CC189)"
blurb: "Yes."
author: "PD Schloss"
date: 2022-02-21 11:00
comments: false
youtube: ht3AX5uZTTQ
start_hash: 9b1b931f6b3d310a312b26a1eafb924b5e5eaab1
end_hash: 0f64c79deabf30603205ffc983abc6674cd121b4
---

Rarefaction of ecological distances and alpha diversity metrics has become controversial in the microbial ecology field. In this Code Club, Pat will use R to look at issues that surround the controversy. Pat will generate a null community distribution model and then assess the impact of rarefaction using the vegdist and avgdist functions from the vegan R package. He'll show how to synthesize and visualize the data using tools from dplyr, ggplot2, and other tidyverse packages.


<iframe style="margin: 0 auto;display:block;" width="560" height="315" src="https://www.youtube.com/embed/{{ page.youtube }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>


## Code

You can browse the state of the repository at the
* [beginning of the episode](https://github.com/riffomonas/distances/tree/{{ page.start_hash }})
* [end of the episode](https://github.com/riffomonas/distances/tree/{{ page.end_hash }})
