/Tidy_PopGen_PCA_Plotting

A small R notebook describing how plot common (aDNA) population genetics PCAs using R and the tidyverse.

Tutorial: (Ancient) Population Genetics PCA Plotting in R and Tidyverse

James A. Fellows Yates (jfy133@gmail.com) with contributions from Thiseas C. Lamnidis, March 2019.

Table of Contents

  1. Description
  2. To use
  3. License

Description

This repository is for a that notebook explains how to make a PCA scatter plot typically used in ancient human population genetics in R, using the tidyverse collection of packages.

The notebook is aimed at those who are pretty new to R, but have a basic knowledge of how things work (e.g. how to assign a variable, a general idea of what a vector is, how to install a R library).

Example output

Example output!

To use

To view the notebook in your browser please see the .md file.

To run the notebook yourself, please clone (i.e. download) the repository to your own computer using the command below, and run within the .Rmd file in Rstudio.

git clone https://github.com/jfy133/Tidy_PopGen_PCA_Plotting.git

You will need to install the packages listed at the beginning of the notebook. Or, even better install the entire tidyverse with install.packages("tidyverse")

License

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.