class: center, middle, inverse, title-slide .title[ # 4. Functional and Phylogenetic Diversity ] .author[ ### Jasper Slingsby, BIO3018F ] .date[ ### 2025-01-30 ] --- layout: false .pull-left[ ## Are simple metrics of the number of species and individuals enough? <img src="images/grassland.jpeg" width="95%" style="display: block; margin: auto;" /> ] .pull-right[ <img src="images/fynbos.png" width="75%" style="display: block; margin: auto;" /> <img src="images/forestyoung.jpg" width="75%" style="display: block; margin: auto;" /> ] --- layout: false ## There's a lot of diversity in the form of species <img src="images/growthform_USGS_image_cropped.jpg" width="55%" style="display: block; margin: auto;" /> Often associated with the environments in which they occur... --- layout: false ## There's a lot of diversity in the form of species <img src="images/habitat_smaller.jpg" width="55%" style="display: block; margin: auto;" /> ...and they have various effects on the environment, such as creating habitat for other species... --- layout: false ## Drawbacks of looking at species diversity only? - What is a species? There are many definitions! Species are _hypotheses_! - Are all species equal? - Would you consider 2 _Erica_ species to be equivalent to an _Erica_ and a _Protea_ or cacao and coffee? - Species counts don't tell you about: - the identity of species or the similarities or differences between them - the functioning of species or communities - the origins and maintenance of diversity (evolution, ecology and biogeography) <img src="images/fynbos_community.jpg" width="50%" style="display: block; margin: auto;" /> --- layout: false ## Measuring _functional_ and _phylogenetic_ diversity .pull-left[ _Representing differences in the functional form and evolutionary history of species_ Many measurement approaches! ] .pull-right[ <img src="images/Fynbos_collage.jpg" width="150%" style="display: block; margin: auto 0 auto auto;" /> ] --- layout: false ## Measuring _functional_ and _phylogenetic_ diversity .pull-left[ Oldest and simplest measures are based on **discrete** predefined categories: - **functional groups** (growth form, etc) - **taxonomic rank** (genera, families, etc<sup>1</sup>) Simply assign your species to the categories (e.g. trees, shrubs, grasses, etc if you're working with plant functional groups) and calculate your diversity metrics as you would for species. .footnote[<sup>1</sup>Species diversity is just a discrete measure of phylogenetic diversity where the taxonomic rank is "species"...] ] .pull-right[ <img src="images/Fynbos_collage.jpg" width="150%" style="display: block; margin: auto 0 auto auto;" /> ] --- layout: false ## Drawbacks of discrete measures .pull-left[ Similar to issues with species diversity... #### Taxonomic ranks - What is a genus or family? - Are all genera or families equal? - Taxonomic ranks are mostly pragmatic categories that help us identify taxa based on shared characters... #### Functional groups - How are they defined? - Qualitative (expert opinion), e.g. tree, shrub,...? - Quantitative (analysis of measured traits)? ] .pull-right[ <img src="images/taxonomy.png" width="110%" style="display: block; margin: auto 0 auto auto;" /> .footnote[###### Image from https://www.poolparty.biz/taxonomy-management-101] ] --- layout: false .pull-left[ ### Defining functional groups quantitatively <img src="images/tetraria_traits.png" width="70%" style="display: block; margin: auto;" /> 1) Measure traits of the species under study ] .pull-right[ 2) Calculate functional distances between species <img src="images/distancemat.png" width="30%" style="display: block; margin: auto;" /> 3) Cluster species based on distances <img src="images/hclust_species.png" width="30%" style="display: block; margin: auto;" /> 4) Define groups based on similarity (depth in tree) or desired number of groups <br> ...but wait a second? ] --- class: center, middle _**There's a lot of useful information in the data and analyses used to define functional groups quantitatively!**_ --- layout: false .pull-left[ ## _Continuous_ measures of functional diversity Rather than lose that information by defining discrete groups and counting them, we can use the unique information directly! E.g. functional diversity can be calculated as the *sum of the branch length* joining all species in the sample (Petchey and Gaston 2002) ] .pull-right[ <img src="images/hclust_species.png" width="90%" style="display: block; margin: auto 0 auto auto;" /> ] --- layout: false .pull-left[ ## _Continuous_ measures of functional diversity There are 3 major approaches to calculating **continuous** metrics of functional diversity: - _Pairwise distances_ - e.g. mean or sum of the pairwise distances between all species in a sample (Walker et al. 1999) - _Hierarchical clustering_ - e.g. sum of the branch length joining all species in the sample (Petchey and Gaston 2002) - _Multidimensional ordination_ - e.g. the area or volume encompassed by the set of species in an ordination of trait space (of 2 or more dimensions) - (Villeger et al. 2008) ] .pull-right[ <img src="images/FD_continuous.png" width="90%" style="display: block; margin: auto 0 auto auto;" /> ] --- layout: false .pull-left[ ## Phylogenetic diversity A **molecular phylogeny** (or "phylogenetic tree") represents the relationships between species based on similarity of their DNA. Branch lengths are usually time-calibrated based on a molecular clock (rate of mutation through time) to represent time (or evolutionary history). Phylogenetic distance is often considered a more complete or integrated measure of the functional similarity of species, because it avoids subjectivity in the selection of traits measured... ] .pull-right[ <img src="images/bird_phylogeny_1.jpg" width="75%" style="display: block; margin: auto;" /> ] --- layout: false .pull-left[ ## _Continuous_ measures of phylogenetic diversity Similar approaches used for phylogenetic diversity. - _Pairwise distances_ - e.g. mean pairwise distances (branch lengths) between all species in a sample or minimum nearest taxon distance (Webb et al. 2002) - _Phylogenetic trees_ - e.g. sum of the branches joining all species (Faith 1991) - can also use the taxonomic hierarchy instead of a phylogeny, but this suffers from the subjectivity of taxonomic ranks - No _multidimensional ordination_ methods for phylogenetic diversity ] .pull-right[ <img src="images/phylogeny.png" width="100%" style="display: block; margin: auto;" /> #### Molecular phylogeny vs taxonomic hierarchy The sum of the branch lengths of a phylogeny linking species in a sample represents the _sum total independent evolutionary history_ in that sample. The taxonomic hierarchy (Order, Family, Genus etc) is far less objective. - That said, phylogenies aren't perfect, and there are many sources of error - molecular regions sampled, methods used, etc. ] --- layout: false ## What about the other components of functional and phylogenetic diversity? .pull-left[ We've only covered measures of `\(\alpha\)` (or `\(\gamma\)`) diversity. <br> Similar methods as for species diversity can be applied to discrete and continuous measures of functional and phylogenetic `\(\beta\)` diversity... ] .pull-right[ <img src="images/diversitycomponents.png" width="70%" style="display: block; margin: auto;" /> ] --- layout: false ## Functional or phylogenetic beta diversity .pull-left[ <img src="images/betadiv_multiv.png" width="90%" style="display: block; margin: auto;" /> e.g. the same equation, `\((A+B-2*J)/(A+B)\)` Where J is the shared quantity, and A and B are totals for each community, can be used for... ] .pull-right[ ### Discrete measures when based on _**counts of functional groups or taxonomic ranks**_ instead of species <br> ### Continuous measures when based on _**branch length**_ (e.g. _PhyloSor_ - Bryant et al. 2008) ] --- class: center, middle ## So what? How does being able to measure functional or phylogenetic diversity help us? --- layout: false .pull-left[ ## "Phylogenetic regionalization" <br> Defining phytoregions based on turnover of phylogenetic diversity in the (woody) flora of southern Africa. These kinds of novel analyses can reveal areas of novel evolutionary history that were previously not recognised! .footnote[figure from Daru et al. 2016] ] .pull-right[ <img src="images/daru_phyloregions.png" width="90%" style="display: block; margin: auto;" /> ] --- layout: false .pull-left[ ## Decifering the determinants of community assembly <br> Don't worry about the scary figure... This is the focus of the next two lectures... But first, it would be useful if you knew more about... .footnote[figure from Webb et al. 2002] ] .pull-right[ <img src="images/webb2002.png" width="90%" style="display: block; margin: auto;" /> ] --- layout: false .pull-left[ ## Null models... We often explore the drivers behind the patterns of diversity we see by contrasting different measures of diversity and/or comparing them to the patterns we would expect to see in the absence of that driver. One commonly used method for generating the expected patterns is _null models_... Null models can be used to "randomize" properties of interest in the data. Typically we generate a large number of "randomized" datasets (e.g. 999) and explore where the observed data rank with respect to the null datasets. .footnote[figure from Slingsby 2011, PhD] ] .pull-right[ <br> <img src="images/nullmodels.png" width="110%" style="display: block; margin: auto 0 auto auto;" /> We can address questions like: - _Are species in communities more closely (or distantly) related than we'd expect?_ - _Are species in communities more functionally similar (or dissimilar) than we'd expect?_ And infer processes from these patterns. ] --- class: center, middle ## A note on "randomize"... I put it in inverted commas, because nothing is ever truly random. Also because random is almost never a reasonable null expectation. I would never expect anything in biology to be completely random, and to do so seems silly. --- layout: false .pull-left[ ## Null models... Null models "randomize" properties of interest in the data, serving as a "null expectation" for comparison to your actual data. There are a number of ways of doing this, but the key is to only randomize the property of interest and keep everything else the same. Properties include (_inter alia_): - functional or phylogenetic relationships - abiotic (or spatial) relationships among sites - number of species in communities (row sums) - number of occurrences (or abundances) of species across all communities (column sums) You have to think very carefully about what properties are affected when applying null models! ] .pull-right[ <br> <img src="images/nullmodels.png" width="110%" style="display: block; margin: auto 0 auto auto;" /> You also need to think carefully about how you sample your communities and how you structure them in your null model (e.g. grouping and analyzing sites separately by region or doing one global analysis, etc). See Gotelli and Graves 1996 for more detail. .footnote[figure from Slingsby 2011, PhD] ] --- class: center, middle ## Take-home *There's a lot more to diversity than simple counts of species.* *Functional and phylogenetic diversity allow us to explore more intricate questions around the ecology, evolution and function of assemblages.* *Null models can be useful for exploring the factors that determine the assembly of communities.* --- ## References Gotelli, N. J. and R. K. Colwell (2001). "Quantifying biodiversity: procedures and pitfalls in the measurement and comparison of species richness". In: _Ecology letters_ 4.4, pp. 379-391. ISSN: 1461-023X, 1461-0248. DOI: [10.1046/j.1461-0248.2001.00230.x](https://doi.org/10.1046%2Fj.1461-0248.2001.00230.x). Slingsby, J. A., C. Merow, M. Aiello-Lammens, et al. (2017). "Intensifying postfire weather and biological invasion drive species loss in a Mediterranean-type biodiversity hotspot". En. In: _Proceedings of the National Academy of Sciences of the United States of America_ 114.18, pp. 4697-4702. ISSN: 0027-8424, 1091-6490. DOI: [10.1073/pnas.1619014114](https://doi.org/10.1073%2Fpnas.1619014114). Whittaker, R. H. (1972). "Evolution and measurement of species diversity". En. In: _Taxon_ 21.2-3, pp. 213-251. ISSN: 0040-0262, 1996-8175. DOI: [10.2307/1218190](https://doi.org/10.2307%2F1218190). --- class: center, middle # Thanks! Slides created via the R packages: [**xaringan**](https://github.com/yihui/xaringan)<br> [gadenbuie/xaringanthemer](https://github.com/gadenbuie/xaringanthemer) The chakra comes from [remark.js](https://remarkjs.com), [**knitr**](http://yihui.name/knitr), and [R Markdown](https://rmarkdown.rstudio.com).