DOI: 10.5061/dryad.sbcc2fr40
title: Data from: Ecological and evolutionary significance of primates’ most consumed plant families

description: Angiosperms have been essential components of primate diet for millions of
 years, but the relative importance of different angiosperm families in
 primate diets and their influence on primate evolution and ecology remains
 unclear. Here, we assess the contribution and ecological and evolutionary
 significance of plant families to the diets of wild primates based on an
 unprecedented dietary dataset of over 8,000 dietary records, compiled from
 140 primary sources encompassing 109 primate species. Out of the 204
 angiosperm plant families recorded in primate diets, only ten families
 were consumed by &gt;50% of primate species. Plants from the Moraceae
 and Fabaceae were the most widely and most frequently consumed and
 represent keystone resources of primates. Over three-quarters of primates
 in our dataset were recorded to feed on these two families, and combined,
 they make up close to 12% of primate diets on average. By analyzing the
 relative proportion of different plant parts consumed, we find that
 Moraceae was mainly consumed as fruit and Fabaceae as non-fruit parts, and
 consumption of these two families showed phylogenetic signal among
 primates. In particular, we also find that Moraceae consumption was
 associated with smaller home range sizes, even though frugivorous primates
 tend to have larger home ranges compared to folivores, possibly due to the
 year-round availability of Moraceae fruits and spatial asynchrony in their
 phenology. Our results suggest that primates may be intricately
 and subtly shaped by the plant families that they consume,
 and highlight the importance of dietary studies in understanding
 primate ecology and evolution.
description: Please refer to the Methods section and Electronic Supplementary
 Material of the published article, as well as the digitization notes
 provided in this repository
description: <b>Citation</b> If you use this dataset, please cite this Dryad repository and the following reference: Lim, J.Y., Wasserman, M.D., Veen, J., Despres-Einspenner, M.-L. & Kissling, W.D. (2021) Ecological and evolutionary significance of primates' most consumed plant families. <i>Proceedings of the Royal Society B</i>, 288: 20210737. https://doi.org/10.1098/rspb.2021.0737 Contents This data repository consists of the following files: Read me Word document containing more details on each file (<b>"ReadMe.docx"</b>) R script for data processing, analysis and figure generation ("<b>Primate_Diet_Script.R</b>") Primate diet dataset<b> ("Primate_Diet_v1-2_Data.xlsx")</b> Full references and attributes of studies in the primate diet dataset ("<b>Primate_Diet_v1-2_References.xlsx</b>") Supplementary notes on how each study in the primate diet dataset was digitized ("<strong>Primate_Diet_v1-2_digitizationNotes.docx</strong>") Home range size and body size information of primates ("<b>Primate_Traits.csv</b>") Maximum clade credible phylogeny, derived from the posterior sample of trees provided by the Faurby et al 2018 dataset ("<b>faurby_mcc_mean_heights.nex</b>") Copy of EltonTraits dataset v1 ("<b>EltonTraits_v1_MamFuncDat.txt</b>") Copy of MammalDiet dataset v1 ("<b>MammalDIET_v1.0.txt</b>") 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. System Requirements To run this code you will need an 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 4.0.3 with the following packages attached (version number in parentheses): `piecewiseSEM` (v.2.1.0), `semPlot` (v1.1.2), `semTools` (v0.5-3), `lavaan` (v0.6-7), `ggrepel` (v0.8.1), `RColorBrewer` (v1.1-2), `ggtree` (v2.4.1), `reshape2` (v1.4.4), `wesanderson` (v0.3.6), `cowplot` (v1.1.0), `plyr` (v1.8.6), `caper` (v1.0.1), `mvtnorm` (v1.1-1), `MASS` (v7.3-53), `ggplot2` (v3.3.2), `phytools` (v0.7-70), `maps` (v3.3.0), `Matrix` (v1.2-18), `nlme` (v3.1-150), `ape` (v5.3), rnaturalearth (v0.1.0). Metadata <b>Primate Diet dataset ("Primate_Diet_v1-2_Data.xlsx")</b> The dataset contains the following columns: <b>SpecName:</b> Species name of primate used in the original paper.  <b>PrimateSpecies</b>: Accepted species name, following taxonomy used by Galán-Acedo <i>et al.</i> (2019) Ecological traits of the world's primates, <i>Scientific Data</i>, 6, 55 (Version 4, updated August 2019). <b>Study_ID:</b> Unique identifier for diet studies (i.e. different primate species, different groups/locations of same primate species, different seasons/years of data collection). Full reference information for each study can be found in the "Primate_Diet_v1_Reference.csv" file.  <b>Food:</b> Food item as reported by original authors, including plant species names, animals, fungus, undetermined food items. If sum of diet percentages reported by study was lower than 100  (see "PercentageDietReported"), a placeholder "Unknown" food item was added.  <b>PlantFamily:</b> Plant family belonging to the plant genus name reported. If we failed to match a plant family to a genus name, an "Unknown_plant" was assigned. For non-plant items (e.g. fungus, animal or unknown items), value is undefined (= N.A.) <b>PlantGenus:</b> Genus names of plant species as reported by the original authors.  <b>PlantSpecies:</b> Species names of plants as reported by original authors.  <b>PlantGenusAcc: </b>Genus names of plant species after synonyms and spelling errors corrected <b>PlantSpeciesAcc: </b>Genus names of plant species after synonyms and spelling errors corrected <b>Percentage_Paper:</b> Percentage of specific food item as reported by original authors. Exception is when original authors reported feeding observations, after which the percentages were calculated manually based on the total feeding observations reported. <b>Percentages_Recalculated</b>: Standardized percentage of food item (percentages scaled to sum to 100 if original paper percentages are above 100). If sum of diet percentages reported by study was lower than 100  (see "PercentageDietReported"), a placeholder "Unknown" food item was added with a percentage that ensure that the sum of percentages in the study up to 100. <b>TypeFood:</b> Reports the type of the food item, including plants, animals, fungus, honey, dung, and unknown.   <b>PartPlant: </b>Reported plant parts (e.g. young leaves, ripe fruits) consumed of a specific plant food item. If multiple plant parts were reported belonging to one percentage, they were reported in separately in PlantPart1, PlantPart2 etc. based on the order they reported in the original paper. All plant parts (+ synonyms) can be found in the second sheet. <b>Season:</b> Reference number when a specific study studied a certain primate species in the same location in different periods, and reported the diet separately. <b>Group:</b> Reference number when a specific study studied multiple groups of a certain primate species, and reported the diet separately. <b>Ref_ID:</b>  Reference number for the different studies used. The notation is based on the first author and year of publication.  <b>Full reference and metadata for primate diet data ("Primate_Diet_v1-2_References.csv"):</b> <b>StudyID: </b>As above <b>Ref_ID:</b> As above <b>SpecName:</b> As above <b>Species</b>:<b> </b>Accepted species name, following taxonomy used by Galán-Acedo <i>et al.</i> (2019) Ecological traits of the world's primates, <i>Scientific Data</i>, 6, 55 (Version 4, updated August 2019). Identical to PrimateSpecies column in data file. <b>Title:</b> Title of reference for study. <b>Duration_months:</b> Total number of months over which dietary data were collected. <b>SampleEffort_hours: </b>Total amount of time (in hours) over which behaviour of primate species was observed. <b>Locality:</b> Locality of study. <b>Country:</b> Country where study was located. <b>DMS_Latitude: </b>Latitude of study locality (in degree, minute, second format). This was manually georeferenced from locality information if not provided in the reference. <b>DMS_Longitude: </b>Longitude of study locality (in degree, minute, second format). This was manually georeferenced from locality information if not provided in the reference. <b>Latitude</b>: Latitude of study locality (in decimal degree format) <b>Longitude</b>: Longitude of study locality (in decimal degree format) <b>SampleMethod:</b> Method used to obtain dietary data of the primate species. <b>Group:</b> See above <b>Season:</b> See above <b>Citation:</b> Citation of the papers used <b>Notes:</b> Additional details about specific Study_IDs including the table(s) the data was extracted from, absence of plant parts, manually calculated percentages. <strong>Supplementary notes on how each study in the primate diet dataset was digitized ("Primate_Diet_v1-2_digitizationNotes.docx")</strong> This supplement is a record of how we digitized food items reported in each study in our dataset, as well as the added interpretation that was necessary to ensure that all the diets are accounted for (e.g., diet percentages for each study sum up to 100%)("Primate_Diet_v1-2_Data.xlsx"). Multiple studies that come from the same reference are treated together for ease of reference. For each reference, a summary of the relevant data and notes on digitization is provided. The former is a description of all salient information reported in the reference on the primate diet. This may range from a breakdown of diet into different categories to more detailed food item lists, and may be textual (in the main text or in tables) or graphical (e.g., pie charts or other figures). The latter is a description of how we inputted this information into the dataset (i.e., "Primate_Diet_v1-2_Data.xlsx") <b>Body size and home range size of primate species ("Primate_Traits.csv")</b> Data is derived from the primate trait dataset by Galán-Acedo <i>et al.</i> (2019) Ecological traits of the world's primates, <i>Scientific Data</i>, 6, 55 (Version 4, updated August 2019). The dataset is available via the following link: https://zenodo.org/record/2600338 <b>Family: </b>Taxonomic family <b>Species:</b> Species name of primate <b>BodyMass_kg: </b>Body mass (in kilograms) of primate. If multiple estimates were in the database, we calculated the average. <b>HomeRange_ha: </b>Home range size (in hectares) of primate. If multiple estimates were in the database, we calculated the average (regardless of methodology). <b>Maximum clade credible phylogeny ("faurby_mcc_mean_heights.nex")</b> We used the posterior distribution of trees ("Complete_phylogeny.nex" file) provided as part of the PHYLACINE dataset, Faurby et al. (2018) Phylacine 1.2: The Phylogenetic Atlas of Mammal Macroecology, <i>Ecology</i>, 99, 2626. Maximum clade credibility phylogeny was generated using TreeAnnotator, and node ages were simply the average of node heights of the corresponding clade across the posterior sample of trees that contained that clade. This was performed by selecting the "Mean heights" option. <b>Copy of EltonTraits dataset v1 ("EltonTraits_v1_MamFuncDat.txt")</b> The EltonTraits database was used to cross-validate estimates of frugivory and folivory (Wilman <i>et al.</i> 2014 Elton Traits 1.0: Species-level foraging attributes of the world's birds and mammals, <i>Ecology</i>, 95, 2027.). No modifications were made. The same file, as well as the metadata for this dataset can be obtained from http://www.esapubs.org/archive/ecol/E095/178/ <b>Copy of MammalDiet dataset v1 ("MammalDIET_v1.0.txt")</b> The MammalDiet database v1 was used to cross-validate estimates of frugivory and folivory (Kissling <i>et al.</i> 2014 Establishing amcroecological trait datasets: digitization, extrapolation, and validation of diet preferences in terrrestrial mammals worldwide, <i>Ecology and Evolution</i>, 4, 2913 - 2930.). No modifications were made. The same file as well as the metadata for this dataset can be obtained from http://datadryad.org/stash/dataset/doi:10.5061/dryad.6cd0v.  Output The R script will generate a list of outputs in a "results" folder. Description of each file are as follows: Filtered dataset ("<b>diet_subset.csv</b>"), wherein studies for which (i) the sampling period was shorter than six months in duration, (ii) the majority of the diet (greater than 50%) was not known or reported or (iii) the plant family for the majority of the plant portion of the diet (greater than 50%) was either not identified by the author(s) of the study or could not be taxonomically verified by us during collation, were omitted.  Phylogenetic signal results ("<b>phylosig_res.csv</b>") Relative proportion of different plant part category in consumption of different plant families ("<b>plantfamily_dietcategories.csv</b>") Relative proportion of different diet category ("fruit", "leaf", "others", "unknown", "animal") in diet of primate species ("<b>primate_dietcategories.csv</b>") Percentage of the ten most consumed plant families in the diets of primate species ("<b>topten_familyprop.csv</b>") Percentage of the ten most consumed plant families in the diets of primate species in matrix format, where species are represented by the rows and the plant families by the columns ("<b>topten_familyprop_matrix.csv</b>"). A derived file where percentages have been rounded to the closest 0.1 percent is also provided ("<b>topten_familyprop_matrix_clean.csv</b> "). Values less than 0.1 are listed as "&lt;0.1".