"We have become, by the power of a glorious evolutionary accident called intelligence, the stewards of life's continuity on earth. We did not ask for this role, but we cannot abjure it. We may not be suited to it, but here we are."
--- Stephen J. Gould
This is a course about community ecology and not so much about population ecology. Community ecology underpins the vast fields of biodiversity and biogeography, and concerns spatial scales from squares of meters to all of Earth. We can look at historical, contemporary, and future processes that have been implicated in shaping the distribution of life on our planet.
Community ecologists tend to analyse how multiple environmental factors act as drivers that influence the distribution of tens or hundreds of species. These data tend to often be messy (not in the sense of untidy data as per the 'tidyverse' definition of tidy data, but it can be that too!) and statistical considerations need to be understood within the context of the data available to us. This translates to errors of measurement and errors due to extreme values, the presence of a few very rare or very abundant species, autocorrelated residuals (due to repeated sampling, for example), colinearity, etc. These challenges make to application of 'basic' statistical approaches problematic, and a new branch of inferential and exploratory statistical needs to be followed. These approaches involve techniques that allow us to work with all the data at once, and because it can simultaneously analyse all the variables (multiple environmental drivers acting on multiple species at multiple places and across multiple times), this group of statistics is called 'multivariate statistics.' There are two main groups of multivariate statistics: 'classifications' and 'ordinations.' Classification generally concerns placing samples (species or environments) into groups or hierarchies of groups, while ordination is best suited for analyses that involve arranging samples along gradients. Often they complement each other, but we shall see later that each approach has its own strengths. Irrespective of the analysis, the data share a few characteristics.
These multivariate datasets have far more information in them than can de detected by the human eye and univariate statistics.
You will encounter the following functions for the first time in this module:
adonis2()
-- Permutational Multivariate Analysis of Variance Using Distance Matricesanova.betadisper()
-- PERMDIST 2 for Multivariate homogeneity of groups dispersions (variances)anova.cca()
-- Permutation Test for Constrained Correspondence Analysis, Redundancy Analysis and Constrained Analysis of Principal Coordinatesanova.manyglm()
-- Analysis of Deviance for Multivariate Generalized Linear Model Fits for Abundance Databeta.pair()
-- Incidence-based pair-wise dissimilaritiesbetadisper()
-- Multivariate homogeneity of groups dispersions (variances)betapart.core()
-- Core calculations of betapartbiplot()
-- Biplot of Multivariate Datacapscale()
-- [Partial] Distance-based Redundancy Analysiscca()
-- [Partial] [Constrained] Correspondence Analysis and Redundancy Analysiscleanplot.pca()
-- Numerical Ecology in R's PCA plotdaisy()
-- Dissimilarity Matrix Calculationdecostand()
-- Standardization Methods for Community Ecologydiag()
- Matrix Diagonalsdiversity()
-- Ecological Diversity Indicesdiversityresult()
-- Alternative Diversity Resultsfviz_cluster()
-- Visualize Clustering Resultsfviz_nbclust()
-- Dertermining and Visualizing the Optimal Number of Clustersfviz_silhouette()
-- Visualize Silhouette Information from Clusteringgeodist()
-- Convert lon-lat coordinates into vector or matrix of geodesic distances in metresggcorrplot()
-- Visualization of a correlation matrix using ggplot2goodness()
-- Diagnostic Tools for [Constrained] Ordination (CCA, RDA, DCA, CA, PCA)imputePCA()
-- Impute dataset with PCAlowerTriangle()
-- Extract or replace the upper/lower triangular portion of a matrixmanyglm()
-- Fitting Generalized Linear Models for Multivariate Abundance Datameanvar.plot()
-- Construct Mean-Variance plots for Multivariate Abundance DatametaMDS()
-- Nonmetric Multidimensional Scaling with Stable Solution from Random Starts, Axis Scaling and Species Scoresmvabund()
-- Multivariate Abundance Data Objectsordiellipse()
-- Display Groups or Factor Levels in Ordination Diagramsordiplot()
-- Alternative plot and identify Functions for Ordinationordispider()
-- Display Groups or Factor Levels in Ordination Diagramsordisurf()
-- Fit and Plot Smooth Surfaces of Variables on Ordinationpam()
-- Partitioning Around Medoidspermutest()
-- Permutation Test for Constrained Correspondence Analysis, Redundancy Analysis and Constrained Analysis of Principal Coordinatesrda()
-- [Partial] [Constrained] Correspondence Analysis and Redundancy AnalysisRsquareAdj()
-- Adjusted R-squarescores()
-- Get Species or Site Scores from an Ordinationspecnumber()
-- Ecological Diversity Indicesstressplot()
-- Goodness of Fit and Shepard Plot for Nonmetric Multidimensional Scalingt()
-- Matrix Transposevegdist()
-- Dissimilarity Indices for Community Ecologistsvif.cca()
-- Diagnostic Tools for [Constrained] Ordination (CCA, RDA, DCA, CA, PCA)
These links point to online resources such as datasets and R scripts in support of the video and PDF lecture material. It is essential that you work through these examples and workflows.
These materials are incomplete...
-
[Lecture 1] Topic 1: Introduction
- [Lecture 2] Topic 2: Biodiversity
- [Lecture 3] Topic 2: Biodiversity (continue)
- [Lecture 4] Topic 2: Biodiversity (continue)
- [Self study] Topic 3: What structures biodiversity?
- [Self study] Topic 3: Historical, neutral, and niche theories
- [Lecture 5] Topic 4: Environmental distance
- [Lecture 6] Topic 5: Species dissimilarity
- [Self study] Topic 3 revisited: Deep dive into gradients
- [Self study] Topic 6: Correlations and associations (lecture 7 slot unused)
- [Lecture 8] Topic 7: Introduction to ordination (theory only; refer to PDF slides and lecture video)
- [Lecture 9] Topic 8: Principal component analysis (PCA)
- [Self study] Topic 8: Principal component analysis (PCA) (continue; lecture slot 10 unused)
- [Self study] Topic 8: PCA of World Health Organization data on progress towards attaining SDGs
- [Lecture 11] Topic 9: Correspondence analysis (CA)
- [Lecture 12] Topic 10: Principal coordinate analysis (PCoA)
- [Lecture 13] Topic 11: non-Metric multi-dimensional scaling (nMDS)
- [Self study] Topic 11: nMDS + PERMANOVA analysis of diatom data (Mayombo et al., 2019)
- [Lecture 14] Topic 12: Constrained ordination
- [Self study] All topics: Review and assignments (lecture slot 15 unused)
- [Lecture 16] Topic 13: Cluster analysis