BeakPCs_1-7.csv: Individual species scores from the first 7 principal components that represent 98.9% of the variation in beak shape. Column headings: Species, PC1, PC2, PC3, PC4, PC5, PC6, PC7. AllTraits-PCs1-8.csv: Individual species scores from the first 8 principal components that represent 96.1% of variation in morphological traits. Column headings: Species, PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8 BirdRealms_Behrman100km.rds: Bird phyloregion rasterlayer defined using a similar protocol to Holt et al. (2013) for each terrestrial 100km grid cell under Behrman cylindrical equal-area projection. 13 phyloregions present (values in object 1:13). Plot in R using plot(). ALLcombinedmetrics.csv: Database containing raw data for figures and analysis. Columns: CellID: Grid cell identity for world map under Behrman projection. RealmID: Phyloregion identity. Values can be 1:13 and are from "BirdRealms_Behrman100km.rds" Terrestiral_SR9: Is the grid cell both terrestrial and contains 9 or more species? TRUE/FALSE Terrestial_Realm: Is the grid cell terrestrial? TRUE/FALSE -- SUM_VAR: The sum of variance (Morphological variance) score for each grid cell NEIGH: The mean nearest neighbour distance (Morphological density) score for each grid cell -- SES_SUM_VAR_G: Morphological variance SES calculated from a global species pool for each grid cell SES_SUM_VAR2.5_G: Lower quantiles of null values of morphological variance from a global species pool for each grid cell SES_SUM_VAR97.5_G: Upper quantiles of null values of morphological variance from a global species pool for each grid cell -- SES_NEIGH_G: Morphological density SES calculated from a global species pool for each grid cell SES_NEIGH2.5_G: Lower quantiles of null values of morphological density from a global species pool for each grid cell SES_NEIGH97.5_G: Upper quantiles of null values of morphological density from a global species pool for each grid cell -- SES_SUM_VAR_R: Morphological variance SES calculated from a phyloregional species pool for each grid cell SES_SUM_VAR2.5_R: Lower quantiles of null values of morphological variance from a phyloregional species pool for each grid cell SES_SUM_VAR97.5_R: Upper quantiles of null values of morphological variance from a phyloregional species pool for each grid cell -- SES_NEIGH_R: Morphological density SES calculated from a phyloregional species pool for each grid cell SES_NEIGH2.5_R: Lower quantiles of null values of morphological density from a phyloregional species pool for each grid cell SES_NEIGH97.5_R: Upper quantiles of null values of morphological density from a phyloregional species pool for each grid cell -- Fig4_sumvar_neigh_G: Calculated values 1:9 depending on SES variance (x) and SES density (y) calculated from a global species pool. Used to generate Figure 4: 1: x < -2, y < -2; 2: -2 < x < 2, y < -2; 3: x < -2, -2 < y < 2; 4: x > 2, y < -2; 5: -2 < x < 2, -2 < y < 2; 6: x < -2, y > 2; 7: x > 2, -2 < y < 2; 8: -2 < x < 2, y > 2; 9: x > 2, y > 2. Fig4_sumvar_neigh_R: Calculated values 1:9 depending on SES variance (x) and SES density (y) calculated from a phyloregional species pool. Used to generate Figure 4: 1: x < -2, y < -2; 2: -2 < x < 2, y < -2; 3: x < -2, -2 < y < 2; 4: x > 2, y < -2; 5: -2 < x < 2, -2 < y < 2; 6: x < -2, y > 2; 7: x > 2, -2 < y < 2; 8: -2 < x < 2, y > 2; 9: x > 2, y > 2. RESULTS_ANALYSIS_FIGURES.R: Script for producing all analyses and figures presented in the results section of Hughes et al. Global biogeographic patterns of avian morphological diversity. Ecology Letters. Detailed annotations are provided in the code. Certain external data sources are needed for parts of the code to run and are outlined here. For further detail see annotations in this document and in the Hughes et al. manuscript. External data sources: SPECIES RICHNESS - derived from BirdLife Range Maps (http://www.birdlife.org/datazone/home). ASSEMBLAGE EVOLUTIONARY DISTINCTIVENESS - derived using the 'equal splits' algorithm on 100 BirdTree phylogenies (https://birdtree.org/). GROSS PRIMARY PRODUCTIVITY - https://doi.org/10.6084/m9.figshare.c.3789814 ACCESSED 23rd September 2020. LAND COVER TYPE and HABITAT HETEROGENEITY - http://doi.org/10.5281/zenodo.3243509 ACCESSED 23rd September 2020. ALTITUDINAL RANGE - accessed via the WorldClim database (Fick & Hijmans 2017) using the getData function in the R package raster (version 3.3.13: Hijmans, 2020). DISCLAIMER: USE OF CODE IS AT THE USERS DISCRETION AND BEARS NO RESPONSIBILITY TO THE AUTHORS. REUSE OF DATASETS SHOULD INCLUDE CITATION OF THE MANUSCRIPT: HUGHES ET AL. GLOBAL BIOGEOGRAPHIC PATTERNS OF AVIAN MORPHOLOGICAL DIVERSITY. ECOLOGY LETTERS.