DATA AND CODE ACCOMPANYING: Sinnott-Armstrong, M.A., Downie, A.E., Federman, S., Valido, A., Jordano, P., and Donoghue, M.J. Global geographic patterns in the colours and sizes of animal-dispersed fruits. Global Ecology & Biogeography. It contains the code and data used to produce the figures and results in this paper. Please direct any questions to miranda.sinnott-armstrong@yale.edu. This database is intended to serve as a starting point with future releases, in order to make data on fruit-related traits more accessible. CODE: 1) Analyses_final.R: This script produces all analyses, results, and figures for the associated paper. The script can be run as-is, though producing the map requires an internet connection (in order to download the altitude map used as a backdrop for the figure). There are two important flags at the beginning: save_to_PDF saves everything to a PDF when set to TRUE, and woody_only removes the non-woody species when set to TRUE. Because some of our data sources included only information about trees (or trees and shrubs), we assessed whether the spatial patterns we observed hold true regardless of whether we include only woody species or not. 2) Helper_functions.R: This script contains various helper functions (calculating hue, lightness, and saturation from spectral reflectances following the formulas in Valido et al 2011, as well as slight modifications to the script for producing the biome plot). DATA: 1) all_data.csv: This is the primary data file containing information on the colors, lengths, and habits of fleshy-fruited plant species. The SiteID column connects these species to the spatial polygons associated with each site. 2) spectra.csv: Data on reflectance spectra for 236 species derived from Regan et al 1998, Regan et al 2001, Valido et al 2011, and Cazetta et al 2012. Cazetta et al 2012 reported hue, lightness, and saturation values rather than color spectra; for the remaining sources, we calculated these values ourselves using the functions in Helper_functions.R. 3) CHELSA_downsampled.tif: Because processing the climatic data to determine the biomes for each site takes a long time, we have downsampled the appropriate climatic layers in order to speed up the process. 4) SitePolygons_short.*: These files together constitute the shapefiles and associated information for the polygons for each site. Each site is associated with a SiteID which is used to combine the polygon-related data with all of the remaining data. 5) ave_size_by_color.csv, ave_size.csv, ratios.csv, and habit_count.csv: These files are all processed versions of the fruit color database (all_data.csv), aggregated in various different ways. a. ave_size.csv: Aggregated average fruit size (fruit length in this case) for each site b. ave_size_by_color.csv: Aggregated average size of fruits per color category at each site c. habit_count.csv: The count of number of species of each habit category. Please note that V1 and NA are both empty cell markers, i.e., the habit of that species was unknown. Please note also that we used only the larger categories of tree, shrub, climber, and herb and excluded minor categories. d. ratios.csv: The count of number of species in each fruit color category at each site. e. out.rds: Because the extraction of biome for each site takes a long time, we saved the output of that code here. DATA SOURCE LIST: Sources for the data can be found in the supplemental material of the paper. REFERENCES: Cazetta, E., Galetti, M., Rezende, E.L. & Schaefer, H.M. (2012) On the reliability of visual communication in vertebrate-dispersed fruits. Journal of Ecology, 100, 277–286. Regan, B.C., Julliot, C., Simmen, B., Vienot, F., Charles-Dominique, P. & Mollon, J.D. (2001) Fruits, foliage and the evolution of primate colour vision. Philosophical Transactions of the Royal Society B: Biological Sciences, 356, 229–283. Regan, B.C., Julliot, C., Simmen, B., Viénot, F., Charles-Dominique, P. & Mollon, J.D. (1998) Frugivory and colour vision in Alouatta seniculus, a trichromatic platyrrhine monkey. Vision Research, 38, 3321–3327. Valido, A., Schaefer, H.M. & Jordano, P. (2011) Colour, design and reward: phenotypic integration of fleshy fruit displays. Journal of Evolutionary Biology, 24, 751–760.