Data and code for: Past and future extinctions shape the body size - fruit size relationship between palms and mammalian frugivores
Data files
Aug 14, 2020 version files 41.58 MB
Abstract
The dispersal of seeds by mammalian frugivores influences the structure and composition of plant communities, but most ecosystems have undergone defaunation over thousands of years, a process that continues today. Understanding how past defaunation has affected fruit-frugivore interactions will thus provide insights into how ecosystems may respond to future frugivore loss. By integrating palm and mammalian frugivore trait and occurrence data worldwide, we reveal a global positive relationship between fruit size and body size of frugivore assemblages. Global variation in fruit size is better explained by present-day frugivore assemblages compared to those of the Late Pleistocene (including extinct species), suggesting a substantial ecological and evolutionary reorganization after Pleistocene mammal extinctions. Interestingly, the reverse is true for the Neotropics where some large-fruited palm species may have persisted over thousands of years following extinction of their main seed dispersers. Simulations of frugivore extinction over the next 100 years suggest that changes in body size will require up to a 4% assemblage-level decrease in palm fruit sizes to maintain the current global frugivore body size - fruit size relationship. Absolute changes in assemblage-level means of palm fruit size were on average up to two-fold higher than observed species-level estimates of seed size change following defaunation. Overall, our results suggest that while some large-fruited palms may persist after the loss of their main dispersers, many palms may be unable to keep pace with future defaunation through evolutionary changes in fruit size alone. The burden of the impact of the extinction of seed dispersers will probably be disproportionately borne by large-fruited palms, possibly over thousands of years to come.
Methods
Please refer to the Methods section and Supplementary Information of the published article.
Usage notes
Contents
This data repository consists of the following folders and files:
- Main folder
- Word document containing information on each file and instructions for use ("README.docx")
- `data` folder
- Palm checklist (presence-absence) data at scale of botanical countries (`palms_in_tdwg3.csv`)
- Palm fruit size trait data (`PalmTraits_10.csv`)
- Botanical country climatic variables (`TDWG_Environment_AllData_2019Feb.csv`)
- Mammal body size and IUCN Red List status (`Phylacine_Trait_data.csv`)
- Mammal diet data (extant mammals) (`MammalDIET_v1.0.txt`)
- Mammal diet classification (extinct mammals) (`frugivoreClassifcation.csv`)
- Mammal checklist (presence-absence) data at the scale of botanical countries for "current" scenario (`mammal_curr_occ.csv`)
- Mammal checklist (presence-absence) data at the scale of botanical countries for "present-natural" scenario (`mammal_presnat_occ.csv`)
- Pre-processed polygon information for botanical country units globally (`tdwg_shp_fort.rds`)
- `src` folder
- R script to estimate extinction probabilities (`estimateExtinctionRates.R`)
- R script to generate variables at botanical country scale, including future frugivore body size after extinction simulations (`generateTDWGdata.R`)
- R script to perform model averaging and project defaunation impact (`analyzeData.R`)
- R script to generate figures in manuscript (`figures.R`)
- R script defining wrapper functions that perform model averaging and generate confidence intervals (`modavg.R`)
Metadata
Palm checklist data at scale of botanical countries (`palms_in_tdwg3.csv`)
This dataset was obtained from the Kew World Checklist of Selected Plant Species (http://wcsp.science.kew.org/home.do; downloaded June 2015) and contains the following columns:
- Area_code_L3: TDWG level 3 (botanical country) unit (Brummitt et al. 2001 World geographic scheme for recording plant distributions. Intenational Working Group on Taxonomic Databases for Plant Sciences, Pittsburg, PA, U.S.A.; https://www.tdwg.org/standards/wgsrpd/)
- SpecName: Palm species name
Palm fruit size trait data (`PalmTraits_10.csv`)
This dataset is the Palm Traits database v.1 (Kissling, W.D. et al. PalmTraits 1.0, a species-level functional trait database of palms worldwide. Sci Data 6, 178 (2019). https://doi.org/10.1038/s41597-019-0189-0). An up-to-date version of this dataset and associated metadata may be obtained from https://datadryad.org/stash/dataset/doi:10.5061/dryad.ts45225.
Botanical country climatic variables (`TDWG_Environment_AllData_2019Feb.csv`)
- LEVEL_3_CO: TDWG level 3 (botanical country) unit
- ID: ID number
- LEVEL_NAME: Name of botanical country unit
- REGION_NAM: Region of botanical country unit
- CONTINENT: Continent of botanical country unit
- REALM_LONG: Biogeographic region of botanical country unit
- AREA_KM2: Geographic area of botanical country unit
- LAT: Latitude of centroid of botanical country unit
- LONG: Longitude of centroid of botanical country unit
- bioX_mean: Mean value of bioclimatic variable X within botanical country unit (30 arc-second resolution; https://chelsa-climate.org/bioclim/)
- bioX_sd: Standard deviation of values of bioclimatic variable X within botanical country unit (30 arc-second resolution; https://chelsa-climate.org/bioclim/)
- lgm_ens_Tmean: Mean value of mean annual temperature within botanical country averaged across Last Glacial Maximum GCMs (30 arc-second resolution; https://chelsa-climate.org/last-glacial-maximum-climate/)
- lgm_ens_Pmean: Mean value of annual precipitation within botanical country averaged across Last Glacial Maximum GCMs (30 arc-second resolution; https://chelsa-climate.org/last-glacial-maximum-climate/)
Mammal body size and IUCN Red List status (`Phylacine_Trait_data.csv`)
The PHYLACINE trait dataset and associated metadata (Faurby et al. 2018 Phylacine 1.2: The Phylogenetic Atlas of Mammal Macroecology, Ecology, 99, 2626.) are stored in this Dryad Digital Repository (https://datadryad.org/stash/dataset/doi:10.5061/dryad.bp26v20)
Mammal diet data (extant mammals) (`MammalDIET_v1.0.txt`)
The MammalDiet database v1 (Kissling et al. 2014 Establishing amcroecological trait datasets: digitization, extrapolation, and validation of diet preferences in terrrestrial mammals worldwide, Ecology and Evolution, 4, 2913 - 2930.) was used to identify frugivores among extant species. Dataset and associated metadata are stored in this digital repository (https://datadryad.org/stash/dataset/doi:10.5061/dryad.6cd0v)
Mammal diet classification (extinct mammals) (`frugivoreClassifcation.csv`)
Taxonomy and diet scores are derived from the PHYLACINE dataset (Faurby et al., 2018). However, proportion of species that are frugivorous at the family-level and order-level were calculated using the MammalDiet dataset (NA = extinct taxon does not have extant relatives in the same family or order, respectively).
- Order: Taxonomic order of mammal taxon
- Family: Taxonomic family of mammal taxon
- Binomial.1.2: Species name of mammal taxon
- Diet.Plant: Proportion of plant in diet
- Diet.Vertebrate: Proportion of vertebrates in diet
- Diet.Invertebrate: Proportion of invertebrates in diet
- Diet.Method: Method used to estimate diet category scores
- Diet.Source: Reference used for diet category scores
- famPropFrug: Proportion of extant species in the same taxonomic family that are primarily or secondarily frugivorous
- famPropOblgFrug: Proportion of extant species in the same taxonomic family that are primarily frugivores
- orderPropFrug: Proportion of extant species in the same taxonomic order that are primarily or secondarily frugivorous
- orderPropOblgFrug: Proportion of extant species in the same taxonomic order that are primarily frugivorous
- Liberal: Whether taxon is included our "Liberal" definition (Y = yes, N = no)
- Default: Whether taxon is included our default definition (Y = yes, N = no)
- Conservative: Whether taxon is included our "Conservative" definition (Y = yes, N = no)
- Notes: Additional notes
Mammal checklist (presence-absence) data at the scale of botanical countries for "current" and "present-natural" scenario (`mammal_curr_occ.csv`)
Data represent checklists of frugivore species at the scale of botanical country units. Both files contain the following columns:
- LEVEL_3_CO: TDWG level 3 (botanical country) unit
- LEVEL_NAME: Name of botanical country unit
- REGION_NAM: Region of botanical country unit
- CONTINENT: Continent of botanical country unit
- SpecName: Species name of species in current scenario
- falsePos: Flagged records (false positives) to be omitted
Pre-processed polygon information for botanical country units globally (`tdwg_shp_fort.rds`)
This file is derived from a shape file of TDWG level 3 / botanical country polygons (downloaded from: https://github.com/tdwg/wgsrpd). To create this file, I first read the shapefile into R using the function `rgdal::readOGR` and subsequently converted the "SpatialPolygons" object into a "data.frame" object using the function `ggplot2::fortify`. This object (saved as an RDS file) is needed for all the maps.
System Requirements
To run this code you will need a current installation of R and some R packages. This includes both for the analysis of data and the plotting of the figures in the manuscript. Feel free to get in contact if you have trouble running the script.
Code was tested on R version 3.5.1 and the following packages (and versions accordingly): `stringr` (v1.4.0), `scales` (v1.0.0), `cowplot` (v1.0.0), `reshape2` (v1.4.3), `MuMIn` (v1.43.6), `viridis` (v0.5.1), `wesanderson` (v0.3.6), `RColorBrewer` (v1.1-2), `ggplot2` (v3.2.1), `rgdal` (v1.4-4), `sp` (v1.3-1), `relaimpo` (v2.2-3), `car` (v3.0-2), `care` (v1.1.10), `spatialreg` (v1.1-3), `spdep` (v1.1-2)
Installation of all neccessary packages may be performed by running the following line of code in R:
`install.packages(c("rgdal, "relaimpo", "care", "ggplot2", "MuMIn", "plyr", "car", "spdep", "spatialreg", "wesanderson", "reshape2", "scales", "cowplot", "RColorBrewer", "stringr"), dependencies = TRUE)`
To run the R script on your local machine, you will first need to specify your local working directory by modifying the "main.dir" variable in the R script. Output will automatically be written into pre-defined folders (e.g., "results", "figures") in your defined working directory. If those pre-defined folders do not exist, they will automatically be created.
Instructions for use
IMPORTANT: To perform a full analysis, the following R scripts have to be run in sequence. The "main.dir" variable at the start of each R script needs to be changed to the path of the folder in your local machine.
Step 0: Estimate extinction probabilities (`estimateExtinction.R`)
- Has to be run first so frugivore body size under defaunation can be calculated in the next step
- Produces a file containing extinction probabilities using different sources (see Methods in published paper)
Step 1: Compute body size and fruit size at the scale of botanical countries (`generateTDWGdata.R`)
- Generate summary statistics (i.e., maximum and median body size and fruit size for each botanical country)
- Imputation of trait values for palm species without data
- Implement probabilistic simulations of future extinction
Step 2: Implement model averaging (`analyzeData.R`)
- Performs model averaging of ordinary least squares (OLS) and spatial autoregressive (SAR) linear models of fruit size at both global and regional scales
- Projects fruit size under future scenarios of defaunation
- Uses wrapper functions for model averaging in `modavg.R`
Step 3: Plot figures (`figures.R`)
-
Produces all figures in the manuscript
Output
All output files ("results" and "figures" folders) are already provided, but running the scripts in order (see Instructions for Use) will regenerate the same files. These include
- Maximum likelihood estimates of transition rates (including those from parametric bootstraps) between IUCN categories using Hoffmann and Di Marco datasets
- Model averaging results (see also Supplementary Table 1 - 6)
- PCA loadings for climatic variables at both global and regional scales (see also Supplementary Table 8)
- Processed files to facilitate plotting