Multivariate Analysis of Ecological Data with R

Quick notes for a postgraduate course

Author

Joan Lluís Riera & Francesc Oliva

Published

April 17, 2023

Preface

These are quick notes on multivariate statistical applications in R for a postgraduate course taught at the Faculty of Biology, University of Barcelona in April-May 2023. They are intended only as teaching materials for the course. They are not comprehensive, might evolve with time and are to be taken “as is”.

Most of the example code uses package vegan (Oksanen et al. 2022). The chapter on cluster analysis will also showcase functions from packages cluster (Maechler et al. 2022) and vegclust (De Caceres, Font, and Oliva 2010). Plots will be done in base graph with examples in ggplot2 (Wickham 2016) as needed. Other packages may be used sparingly and commented on as needed. Code will mostly use base R functions and syntax, with tidyverse (Wickham et al. 2019) exemplified on occasion.

Data sets used in the code come either from example data in the above-cited packages, and Primer example data. Other data, including the authors’ own data, will be referenced on use.