RStudio

Double-click on the .Rproj file which is as the root of the folder you downloaded. This should open a new session in RStudio that will start at the root of the project folder.

Following the tutorial

To follow the tutorial you have plenty of options:

  1. It is accessible online at https://rekyt.github.io/biodiversity_facets_tutorial/ click on Tutorial in the navigation bar to access the tutorial.
  2. You can access open the diversity_facets_tutorial.Rmd in RStudio to follow along.
  3. You can also open the diversity_facets_tutorial.R in RStudio to get only the code to execute exactly the codes here.

Installing needed packages

We will use some specific packages in the rest of the tutorial. To make sure you have them please run the following command:

install.packages(
  c("ade4",
    "ape",
    "FD",
    "fundiversity",
    "ggplot2",
    "ggspatial",
    "performance",
    "picante",
    "rnaturalearth",
    "sf")
)

Note: If you encounter trouble while installing software notify me at the beginning of the practical session and I’ll come to you to solve the issue

LS0tCnRpdGxlOiAiSW5zdGFsbGluZyBSZXF1aXJlZCBQYWNrYWdlcyIKb3V0cHV0OiBodG1sX2RvY3VtZW50CmJpYmxpb2dyYXBoeTogYmlibGlvZ3JhcGh5LmJpYgplZGl0b3Jfb3B0aW9uczoKICBjaHVua19vdXRwdXRfdHlwZTogY29uc29sZQotLS0KCmBgYHtyIHNldHVwLCBpbmNsdWRlPUZBTFNFfQprbml0cjo6b3B0c19jaHVuayRzZXQoZWNobyA9IFRSVUUsIGV2YWwgPSBGQUxTRSkKYGBgCgojIyBSU3R1ZGlvCgpEb3VibGUtY2xpY2sgb24gdGhlIGAuUnByb2pgIGZpbGUgd2hpY2ggaXMgYXMgdGhlIHJvb3Qgb2YgdGhlIGZvbGRlciB5b3UgZG93bmxvYWRlZC4gVGhpcyBzaG91bGQgb3BlbiBhIG5ldyBzZXNzaW9uIGluIFJTdHVkaW8gdGhhdCB3aWxsIHN0YXJ0IGF0IHRoZSByb290IG9mIHRoZSBwcm9qZWN0IGZvbGRlci4KCiMjIEZvbGxvd2luZyB0aGUgdHV0b3JpYWwKClRvIGZvbGxvdyB0aGUgdHV0b3JpYWwgeW91IGhhdmUgcGxlbnR5IG9mIG9wdGlvbnM6CgoxLiBJ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