---
layout: post
title: "How to create a biplot using vegan and ggplot2 (CC203)"
blurb: "So much tidyverse"
author: "PD Schloss"
date: 2022-04-11 11:00
comments: false
youtube: _EjNR6YdnGM
start_hash: 52a70390b74b5d3fd4dd9a214927ec1b1424d64f
end_hash: 0dfa715e97380fd7cb09141ddba0f704126752ae
---

Although vegan has its own functions for generating biplots, they're a little funky. We'll create our own using ggplot2, dplyr, purrr, ggrepel, and broom. This will allow us to better understand what biplots are and get more practice using these great 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 }})
