Introduction

Human-driven pressures such as habitat loss, fragmentation, and climate change are increasingly influencing animals’ populations and geographical ranges. Because they are found in the tropics, primates are predicted to experience a greater climate change-related temperature shift than the global mean, highlighting the importance of understanding their potential response to environmental change (Graham et al. 2016; Korstjens and Hillyer 2016; Stewart et al. 2020). Accurately modeling these responses can help predict the most effective locations for future protected areas and identify species that are most at risk, greatly aiding conservation efforts (Connolly et al. 2017). Current species distribution models generally incorporate climatic variables and species’ presence data but usually do not account for functional traits (Wittmann et al. 2016), which influence how different species interact with their environment. While correlative distribution models can be used to make some broad predictions about potential animal range changes, they cannot provide detailed information about individual species’ responses to environmental change, as they lack a mechanistic element. Understanding the underlying mechanisms that drive distributions, related to how animals interact with their environment, will help to improve the predictive power of species distribution models by allowing mechanistic methods to be applied where enough data are available (Connolly et al. 2017; Dunbar et al. 2009).

Species distributions and resulting community structure are thought to be shaped by three main mechanisms: neutral processes, abiotic filtering (environmental processes), and biotic filtering (interspecific interactions) (Bannar-Martin 2014; Pavoine et al. 2011). Although distribution is most likely driven by a combination of all three, they are often studied independently (Gouveia et al. 2014). Models based on neutral processes are perhaps the simplest, since they assume that all organisms in the same trophic level are competitively equivalent and distribution patterns are driven mostly by dispersal limitations (Rosindell et al. 2011). Neutral processes are important in driving community assembly in primates (Bannar-Martin 2014; Beaudrot and Marshall 2011). Current and historical environmental conditions are also important drivers of primate community structure and distributions, although the relative importance of specific climatic variables varies between regions and species (Beaudrot and Marshall 2019; Korstjens et al. 2018; Rowan et al. 2016, 2020). For example rainfall explains community structure in African, Malagasy, and American primate communities and maximum temperature in American communities (Kamilar 2009). Less work has been done on the role of biotic filtering on primate communities and distributions, though competition within arboreal guenon (genera Cercopithecus and Allochrocebus) multispecies communities limit individual species’ distributions (Korstjens et al. 2018). Different species have different ecological requirements and adaptations (Hidasi-Neto et al. 2012; Laughlin et al. 2011), leading to different fitness in different locations, depending on environment, competitors, predators, and pathogens (Pavoine et al. 2011; Ricklefs 2015). The biological traits that drive primate distributions most strongly, are, however, still unclear.

To better predict species’ responses to environmental change, we need to understand not just the role of environmental filtering on species’ distributions but also the mechanisms behind species–environment relationships. Recent work has investigated environmental filtering by focusing on phylogenetic structuring within communities (Kamilar et al. 2014; Mazel et al. 2015). Phylogeny is often assumed to be closely related to ecological similarity, as biological traits tend to be conserved among closely related species (Kamilar et al. 2015). It is hypothesized that closely related species exploit similar ecological niches and will be found in similar habitats, leading to phylogenetically clustered communities (Kamilar et al. 2015). If this is the case, then environment is likely an important driver of community composition. However, an alternative hypothesis suggests that competitive exclusion can cause closely related species to be overdispersed rather than clustered (Kamilar et al. 2015). If this is the case, environmental filtering is less important than neutral and biotic processes, though these factors are not entirely independent of each other (Cadotte and Tucker 2017).

Communities of birds and African mammals show significant phylogenetic structuring that can be linked to environmental conditions (Cardillo 2011; Hidasi-Neto et al. 2012). For primate communities, however, some studies show little or no phylogenetic structuring (Hidasi-Neto et al. 2012; Kamilar et al. 2015), suggesting that null processes such as dispersal limitation play a greater role than environmental filtering (Beaudrot and Marshall 2011). Other studies find a stronger effect of environmental filtering on community similarities, with the effects being stronger for genus-level than species-level analyses (Beaudrot and Marshall 2019). Likewise, ecologically similar primate species have been found to cluster according to ecoregion (Fleagle and Reed 1996; Muldoon and Goodman 2010), suggesting a role for environment in community assembly. In addition, primate species richness can be mapped according to environmental variables (Gaston 2000), so the total number of species in a community appears to be driven by environment. In primates, the most important environmental factors shown to drive species richness are rainfall, forest productivity, and forest structure (Gouveia et al. 2014; Kay et al. 1997; Wang et al. 2013), as well as historical biogeographical factors (Kay et al. 1997). However, whether environmental variables influence the species that make up a community rather than just the total number of species an environment can support requires further study.

A significant limitation of using phylogenetic structure to indicate similarity in biological traits is that, although traits are often conserved among closely related species, there can be significant convergence among species that are not closely related, and divergence in species that are closely related (Losos 2008). In addition, there is growing evidence that phylogenetic relationships poorly explain the outcome of competition between ecologically similar species, which may be more complex than is often assumed (Mayfield and Levine 2010; Ricklefs 2015). Therefore, phylogenetic community structure may not always provide an accurate picture of how species–environment relationships drive species communities and species distribution patterns. Even without these issues, while phylogenetic structuring can indicate whether environment–trait relationships influence community structure, it cannot identify which particular environmental or biological traits are important; for this a trait-based approach is required.

Trait-based approaches allow species-independent observations, which are broadly applicable even when data for individual species are limited (Santini et al. 2016), and can be used to create predictive models of how distributions respond to environmental change (Wittmann et al. 2016). Biological traits influence how an organism interacts with its environment and define the niche of that organism. Understanding functional links between environment, traits, and distribution could enable the development of mechanistic predictive models of how changing environments will affect different organisms (Laughlin et al. 2011), and identify species that may be at risk of extinction (Davidson et al. 2017). Species traits have been linked with environmental conditions in birds, butterflies, and forest plants (Hanspach et al. 2015; Laughlin et al. 2011; Wittmann et al. 2016), and in small mammals the most abundant species at particular locations share similar traits (Hidasi-Neto et al. 2020). A small number of studies have looked at the role of traits in defining primate distributions (Fleagle and Reed 1996; Muldoon and Goodman 2010; Razafindratsima et al. 2012). A recent study incorporated traits into an analysis of primate species’ susceptibility to extreme weather, in which they predetermined the traits they considered important in defining extreme event vulnerability (Zhang et al. 2019). To predict how species may respond to environmental changes, however, we need to independently identify which traits are associated with which environmental conditions.

We use a trait-based statistical approach to test the role of environmental filtering in driving primate distributions. We investigate associations between climate, canopy height, and functional traits across 57 species from 14 primate genera in 354 sites across sub-Saharan Africa. We use a three-table ordination approach using a combination of RLQ ordination and fourth-corner analyses to identify associations between environment and biological traits. Unlike more traditional ecological approaches, this provides a mechanistic link between organism and environment that could then be applied to develop predictive models: if particular traits are linked with particular environmental conditions then species with those traits should be affected if the relevant environmental condition alters. This type of large-scale study has been made possible only relatively recently by the increasing availability of high-quality global data sets for both climate and species distributions (Kamilar and Beaudrot 2013).

Our overall hypothesis is that a primate’s ability to survive in a particular location is affected by how well suited its biological traits are to the environmental conditions in that area. If this is the case then specific biological traits (Table I) will be associated with specific environmental variables (Fig. 1 and Electronic Supplementary Material 1 [ESM 1] Table SI).

Table I Summary table of biological traits included in analyses of relationships between environmental variables and biological traits in African haplorrhines
Fig. 1
figure 1

Predicted relationships between environmental variables and biological traits in primates, based on current literature. Environmental variables and biological traits are aspects of the inputs we chose for the RLQ model in this study, while intermediate effects are included to detail the reasoning behind the predictions.

Methods

Data Sets

We carried out analyses at both genus and species level on haplorrhine primates because genus- and species-level patterns may differ (Beaudrot and Marshall 2019). We excluded strepsirrhines (Fleagle and Reed 1996), as they occupy a significantly different area of niche space to other primates, being nocturnal or restricted to Madagascar (the lemurs). In addition, a lack of presence/absence data for strepsirrhines on the African continent means that including strepsirrhines in the analysis would severely reduce the number of sites we could include.

We collated presence and absence of 57 species from 14 haplorrhine genera following the taxonomy from Kingdon et al. (2013) across sub-Saharan Africa for sites where at least one haplorrhine species occurred (Korstjens et al. 2018; ESM 2). We included the species Allochrocebus lhoesti, A. preussi, and A. solatus (Kingdon and Groves 2013) within the genus Cercopithecus because some analyses show they can be considered very closely related or of the same genus (Guschanski et al. 2013). We used the United Nations Environmental Programme (UNEP) World Conservation Monitoring Centre (WCMC) database on protected areas (accessed between 2003 and 2006) and the African Protected Areas Assessment Tool (APAAT; Hartley et al. 2007), accessed in 2013–2014, to locate potential sites. The WCMC and APAAT data are now part of the Digital Observatory for Protected Areas (DOPA; https://dopa.jrc.ec.europa.eu/en/mapsanddatasets). We used Google and Google Scholar to locate reports and scientific publications about primate presence at those locations using the site’s name to verify or complete the data available in the WCMC and APAAT database. If this search produced country- or region-wide primate surveys that included further locations, we also included those in the data set. We then projected the locations of sites onto a map of Africa to identify geographical gaps in distribution information and conducted an intensive search to fill those gaps, using the keywords: country name with census, primates, mammals, Cercopithecus, Colobus, ape or monkey. This identified additional sites that did not have the protection status of those appearing on UNEP databases, giving a total of 354 sites (Fig. 2). Information on species’ presence represents the situation since 1970, which means that in a few cases the populations may have since gone extinct. We verified or completed conflicting or incomplete information by searching for additional reliable scientific reports and publications. Although it is common practice to use species range map data as a proxy for presence/absence or for developing niche models of the climatic range (Gouveia et al. 2014), these tend to overestimate presence (Hurlbert and Jetz 2007) and niche breadth. Therefore, although a smaller overall area is covered using site specific presence/absence data, it is likely to be more accurate than total coverage alone.

Fig. 2
figure 2

Map of Africa showing sites used in analyses of relationships between environmental variables and biological traits in African haplorrhines. Intensity of green indicates canopy height, based on the global canopy height database of Simard et al. (2011) at 1 km resolution.

We compiled high-resolution bioclimate data (at 30-s intervals) from WorldClim’s global climate database version 1.4 following (Hijmans et al. 2015). We used the climate variables mean annual temperature (BIO1); diurnal temperature range (BIO2; mean of monthly max temperature − min temperature); temperature seasonality (BIO4; standard deviation of monthly mean temperatures × 100); mean annual precipitation (BIO12); and precipitation seasonality (BIO15; coefficient of variation of monthly rainfall). These variables were shown to be important in previous primate studies (Dunbar et al. 2009; Gouveia et al. 2014; Korstjens 2019; Wang et al. 2013). We used canopy height as a proxy for forest stratification (Gouveia et al. 2014) and extracted high-resolution (1 km) canopy height data from the global canopy height database Simard et al. (2011). For each site, we used the latitude/longitude values (reflecting the center of a park if the location referred to a protected area) to extract a single data point for each climate measure in R3.1.1 (R Core Team 2016) using the RStudio Version 0.99.903 for Windows interface.

We compiled trait data from published sources (Table I; ESM 2). Where species-specific trait data were unavailable, we used a genus median; this occurred mainly in traits such as age at first birth and intermembral index where more limited data are available (ESM 1 Table SIIa). We calculated genus values as the median of all species for which data were available (ESM 2). All quantitative trait variables showed a skewed distribution, so we log transformed them prior to any further statistical analysis.

We included species that were identified as semiterrestrial in our “terrestrial” group because almost all terrestrial primates use trees regularly and could be considered semiterrestrial. Omnivore includes all species identified as omnivore or fruit-omnivore. We considered all colobines as folivores.

Statistical Analysis

We performed RLQ and fourth-corner analyses in R version 3.1.1 using the ade4 package (Dray and Dufour 2007; code in ESM 1). RLQ analysis involves building three data matrices: an R matrix for sites and environmental variables, an L matrix for sites and species occurrence data, and a Q matrix for species and biological traits. First, we performed a correspondence analysis on the species’ presence/absence matrix L, then, a principal component analysis on the environment matrix R (all data are numeric), and a Hill–Smith test on the traits matrix Q (to allow for both numeric and categorical data). The subsequent RLQ analysis combines the results of these analyses to look for correlations between the environment gradients and trait syndromes, giving a measure of association (corr L; Dray et al. 2014). CorrL identifies how well each axis emerging from the RLQ analysis explains the variation found in the species distribution matrix (L). We used Monte Carlo permutation tests with 4999 permutations to test whether this association was statistically significant (P < 0.05). We used three different permutation models, each of which holds different elements fixed in order to test associations between the others (Dray et al. 2014). First, we permuted the rows of species presence (L) or environment (R) to test the null hypothesis that the distribution of species with fixed traits (Q) is not influenced by environment. Second, we permuted the species presence (L) to test the null hypothesis that the species’ composition of samples with fixed environmental conditions (R) is not influenced by species trait (Q). Finally, we combined the first two models to test the null hypothesis that at least one of R and Q is not linked to L (occurence), against the alternative hypothesis that both traits and environment affect species’ distributions.

We used the fourth-corner method to look for specific environment–trait relationships, without the added complexity of multivariate analyses. We corrected the P-values using the False Discovery Rate (FDR) procedure due to multiple comparisons (Dray et al. 2014). Finally, we used a hierarchical cluster analysis to separate genera and species into functional groups based on their trait scores from the RLQ analysis. We mapped these groups in Q-GIS Desktop 2.8.2, using the reference system WGS84, to show distributions of these functional groups. There is intercorrelation among the environmental variables and among the species traits (ESM 1 Tables IIbd), but this is not an issue for this particular analysis because the analysis incorporates a factor analysis that combines biological traits and environmental conditions each into two main component axes. There will be some spatial autocorrelation among the site data, despite our every effort to find sites across Africa. Although the analyses are relatively robust against spatial autocorrelation (4999 permutations are run), we also reran the full analyses on a reduced data set of 177 sites that were all separated at least 1 degree longitude and latitude in all directions from each other (ESM 1). This more conservative analysis did not give us substantially different results so we used the full data set in this study.

Ethical Note

This study did not include any direct research on animal or human subjects. The authors declare that they have no conflicts of interest.

Data Availability

Species trait and environmental data used in this project are presented in the supplementary materials (ESM 2) and they are available on BORDAR, Bournemouth University’s open access database (https://doi.org/10.18746/bmth.data.00000142). Access to the datafile containing species presence/absence per site can be made available on reasonable request to the corresponding author.

Results

Genus Level RLQ, Fourth-Corner, and Monte Carlo Analyses

The first two RLQ ordination axes account for 97.78% of total inertia in species distribution patterns, with the first axis accounting for most of this (95.31%; Table II). The first axis is well correlated with the site-by-species matrix (correlation with L, Table II). Interbirth interval, age at first birth (together explaining 34.48% of inertia), substrate use (total 16.87%), and diet (total 18.67%) are the most important contributors to the inertia for the relationship between trait and distributions (matrices Q and L) (Table III). The most important environmental variables are temperature seasonality, annual precipitation, and canopy height (Table III). Primate genera that are terrestrial and omnivorous are associated with higher temperature seasonality, diurnal range, and precipitation seasonality, while genera that are arboreal and frugivorous or folivorous are associated with higher precipitation and increased canopy height (Figs. 3a, b and 4). There were no significant relationships between the RLQ axes of the environmental matrix (R) and individual biological traits (Fig. 3c). The first RLQ ordination axis of the traits matrix (Q) was negatively associated with precipitation seasonality and temperature seasonality (Fig. 3d).

Table II Summary of RLQ results testing relationships between environmental variables and biological traits at genus level in African haplorrhines
Table III Percentage contributions to total inertia and relative contributions (%) to both RLQ axes of individual biological trait and environmental variables in analyses testing relationships between environmental variables and biological traits in African haplorrhine genera
Fig. 3
figure 3

Results of RLQ and fourth-corner analyses testing relationships between environmental variables and biological traits at genus level in African haplorrhines. a Coefficients for biological traits and environmental variables for RLQ analysis. b Scores for genera in RLQ analysis. Colored ellipses indicate clusters of ecologically similar genera identified in the analysis as shown in Fig. 4 and ESM 1 Table SIII. c Fourth-corner tests of association between the first two RLQ axes for environmental gradients (AxisR1 and AxisR2) and individual biological trait variables. d Fourth-corner tests of associations between the first two RLQ axes for trait gradients (Axis Q1 and Axis Q2) and individual environmental variables. In c and d, light gray cells represent significant negative associations, and white cells represent no significant association (there were no significant positive associations).

Fig. 4
figure 4

Maps to show distributions (location where they are present) of each ecologically similar genus group based on trait scores in an analysis of relationships between environmental variables and biological traits in African haplorrhines (group membership is given in ESM 1 Table SIV).

Fourth-corner tests indicate significant negative associations between precipitation seasonality and interbirth interval when α = 0.05. However, when we adjust α to account for multiple comparisons, there are no significant correlations between the environment and genus traits (ESM 1 Table SIII). Combining the fourth-corner and RLQ analyses with Monte Carlo tests confirms that only the first model is significant, where we permuted the rows of species presence (L) or environment (R) to test the null hypothesis that the distribution of species with fixed traits (Q) is not influenced by environment, implying that environment was important in determining species’ distributions, while traits were not (Table IV). Associations between distributions and genus traits were not significant; most of the variation in distributions therefore was explained by environmental factors.

Table IV Summary statistics for Monte Carlo significance tests for biological trait–environment relationships at genus level in African haplorrhines using three different permutation models

Differences Between Genus Groups

We placed genera into functional groups based on their trait scores from the RLQ analysis (Figs. 3a and 4, and ESM 1 Fig. S1 and Table SIV). For most traits, functional groups did not differ significantly, although group 5 (genera Gorilla and Pan) had a higher body mass, interbirth interval, and age at first birth (ESM 1 Fig. S1 and Table SIV). Group 4 (genera Mandrillus and Papio) had the largest home range and daily travel distance (ESM 1 Table SIV and Fig. S1). To some extent the different groups occupied different ecogeographical regions (Fig. 4), with some mostly living in dense forest, namely groups 1 and 5, and others in more open forest with lower canopies (group 2). Some cover a wide range of environment types (groups 3 and 4).

Species-Level Analyses

The first two RLQ ordination axes account for 97.82% of total inertia, with the first axis accounting for most of this (Table V). Both RLQ axes are well correlated with the original site-by-species matrix (Table V). The axes show a similar relationship with biological and environmental traits as the analysis at genus level. Daily travel, age at first birth, interbirth interval, and arborealism are the most important biological traits (Table VI). The most important environmental variables are temperature seasonality, annual precipitation, canopy height, and temperature diurnal range (Table VI). Arboreal and frugivorous species are associated with taller canopies and higher precipitation, while terrestrial, omnivorous, and wider ranging species are associated with higher temperature seasonality and diurnal range (Fig. 5a, b). The first RLQ ordination axis for the trait variables (Q) is significantly positively associated with annual precipitation and canopy height, and negatively associated with diurnal range, temperature seasonality, and precipitation seasonality (Fig. 5d), while the second axis is positively associated with precipitation seasonality (Fig. 5d). Associations of species traits with the environmental axes are not significant; most of the variation in distributions therefore is explained by environmental factors (Fig. 5c). Combining the fourth corner and RLQ analyses with Monte-Carlo tests confirms that environment was important in determining species’ distributions, while traits were not (Table VII).

Table V Summary of RLQ results testing relationships between environmental variables and biological traits at species level in African haplorrhines
Table VI Percentage contributions to total inertia and relative contributions (%) to both RLQ axes of individual trait and environmental variables in analysis of the relationships between environmental variables and biological traits in African haplorrhine species
Table VII Summary statistics for Monte Carlo test for significance of trait–environment relationships at species level in African haplorrhines using three different permutation models
Fig. 5
figure 5

Results of RLQ and fourth-corner analyses testing relationships between environmental variables and biological traits at species level in African haplorrhines. a Coefficients for trait and environmental variables in RLQ analysis. b Scores for species in RLQ analysis. Colored ellipses indicate clusters of ecologically similar species identified in the analysis as shown in Fig. 6 and ESM 1 Table SVI. c Fourth-corner tests of association between the first two RLQ axes for environmental gradients (AxisR1 and AxisR2) and individual trait variables. d Fourth-corner tests of associations between the first two RLQ axes for trait gradients (Axis Q1 and Axis Q2) and individual environmental variables. In c and d, light grey cells represent significant negative associations, and white cells represent no significant association (there were no significant positive associations).

The fourth-corner analysis shows that daily travel distance is positively correlated with diurnal temperature range, monthly temperature seasonality, and precipitation seasonality; interbirth interval is negatively associated with precipitation seasonality; birth rate is associated with canopy height; and arborealism is associated with temperature diurnal range, temperature seasonality, annual precipitation and precipitation seasonality (before correcting for multiple tests, but not after correction; ESM 1 Table SV).

Species Groups

We placed species into functional groups according to the outcome of the RLQ analyses using a hierarchical cluster analysis (Fig. 5a) and compared the groups in terms of biological traits. The only difference was that group 5 had a larger daily travel distance than the other groups (ESM 1 Table SVI and Fig. S2). The species’ groups appear to cluster by ecoregion (Fig. 6). Groups 1, 5, 6, and 9 (mainly Cercopithecus, Pan, Gorilla, and Colobus spp.) are found predominantly in dense forest, while groups 2 and 4 (Theropithecus, Miopithecus, and Chlorocebus spp.) are in more open environments, and groups 3, 7, and 8 (Mandrillus, Papio, Erythrocebus, and Cercocebus spp.) are spread across a variety of habitats.

Fig. 6
figure 6

Maps to show distributions (location where they are present) of each group of ecologically similar species based on trait scores from an RLQ analysis of relationships between environmental variables and biological traits in African haplorrhines (group membership is given in ESM 1 Table SVI).

Discussion

Theoretically, biological traits are expected to greatly influence distribution patterns, and specific genera or species’ biological traits are hypothesized to be associated with specific environmental conditions. Within the haplorrhines in Africa, we did not find any significant associations between groups of traits and groups of environmental variables, nor did particular groups of traits associate significantly with distribution patterns. We did confirm that environmental conditions at sites explain which species are found at those sites: there was a clear association between environmental conditions and species’ distributions. This means our analyses show that environmental filtering is important but that none of the traits that we predicted to be associated with particular environmental conditions could explain why specific species associated with specific environmental conditions. Species and genera could be grouped according to their environmental preferences but those preferences were not associated with specific traits. These results support Beaudrot and Marshal (2019), who showed environmental filtering influenced community composition in African primates at the genus level, but our analyses also found the effect at species level, which Beaudrot and Marshal (2019) did not observe.

Our analysis showed that environmental filtering is important in shaping primate distributions, consistent with the continental scale results of Kamilar (2009). Axis 1 of the environment–distribution analysis was responsible for almost all variation in distribution patterns. The strongest individual environmental drivers were temperature seasonality, annual precipitation, and canopy height. The right-hand side of axis 1 represents environments with higher precipitation and taller canopies (i.e., dense productive forest), and the left-hand side represents environments with high temperature seasonality and greater diurnal temperature range (i.e., open woodland/savannah). All of these variables have been found to be important in previous studies of primate species’ distributions (Gouveia et al. 2014; Kamilar et al. 2015; Korstjens et al. 2010), along with other environmental factors that may influence trait distributions such as altitude, canopy cover, and indirect factors such as soil nutrients (Beaudrot and Marshall 2019; Laughlin et al. 2011) that were not tested here. Although the relationships suggested here were directional, environmental variables may not have a linear relationship with species tolerances: e.g., increasing temperature is likely to be a positive influence on primate presence up to a point, but most species will not tolerate very high temperatures. Therefore, measures of environmental harshness, which correlate with phylogenetic structuring in mammals, may be important (Kamilar et al. 2014). The analyses conducted here also provided support for clustering by ecoregion (Fleagle and Reed 1996; Muldoon and Goodman 2010).

The finding that biological traits do not appear to affect species distributions in African primates is somewhat surprising given that we expected that environment–species relationships would be driven by biological traits. The traits that contributed most to variation in genus distributions were life history traits (34.48% of the variation), while only 16.87% and 18.67% of variation was explained by substrate used (terrestrial/arboreal) and diet respectively. At species level, 28.12% of variation in distributions was explained by life history variables and 21.69% and 14.40% by substrate use and diet respectively. None of these relationships remained significant when corrected for multiple testing, and combining the analysis of fourth corner and RLQ showed that the influence of traits on distribution patterns was not significant when environmental conditions were kept constant. The lack of clear relationships between environmental conditions and biological traits and the insignificant role of traits in driving distribution patterns was unexpected considering how important environment has been shown to be in determining the distributions of the plants primates use for both food and substrate (Laughlin et al. 2011).

If primate species specialised on particular food plants, we would expect a strong association between diet and environment, as different environments are likely to contain different food species. However, primates tend to exploit a wide variety of food sources and many vary their diets significantly according to resource availability (e.g., Cercopithecus mitis: Coleman and Hill 2015). Many genera, including Cercopithecus and Pan, also alter their time budgets, activity levels, group size, and home range in different locations (Campera et al. 2014; Fan et al. 2013; Kalan et al. 2020; Korstjens et al. 2018; Zhou et al. 2013). As these biological traits are not necessarily fixed in primates, the relationship between diet and environmental factors may be less clear than in other taxa in which biological trait filtering has been shown to be important, such as birds and butterflies (Hanspach et al. 2015; Wittmann et al. 2016). Similarly, in Ugandan primate communities, taxonomic similarity within communities was not associated with tree community composition, which was attributed to the fact that primates are generalists (Beaudrot et al. 2013). In addition, most African primates share very similar niche space, with the exception of the Galagidae family (Fleagle and Reed 1996). This, combined with intraspecific variation of traits, means primate communities are likely made up of an essentially random selection of ecologically similar species rather than highly specialised species (Beaudrot and Marshall 2011; Rosindell et al. 2011). Similar results have also been found for a wider range of African mammals, where mechanistic models incorporating climate could not predict co-occurrence of different species across their entire ranges (Buschke et al. 2015). Even though primate species are highly adaptable, they are not identical and they do have limitations. In genera Gorilla and Pan, different behavioral patterns and climatic changes affect time budgets, with some behavioral strategies allowing species to better adapt to environmental changes than others (Lehmann et al. 2008). While a species may be able to persist temporarily using a different foraging strategy, they may not be able to do so in the long term (Lehmann et al. 2010). There is also little known about the long-term impacts of lower diet quality on primates: while some species may be able to feed on low-quality food items when resources are scarce, it is not known if they will be able to continue doing so indefinitely (Chapman et al. 2015). The behavioral flexibility of primate species makes it difficult to determine which species will be worst affected by environmental change, highlighting the importance for further research into their adaptability.

None of the analyses we performed here included measures of human pressures, which are likely to be important in determining a species’ ability to persist at a given location. Human pressures, including population growth, density, distance to major cities, and the Human Influence Index (a composite measure of human impacts on the environment, taking into account population density, land use, infrastructure, and human access), along with climatic variables, have been shown to be better predictors of mammalian species’ ranges than biological traits (Di Marco and Santini 2015). Future models of primate species ranges should take the effect of human pressures into account as well as environmental and biological traits.

The RLQ and fourth-corner methods are well established in ecological studies but have some issues. The patterns identified by RLQ analyses may be changed significantly or even reversed by altering the traits included in the analysis (Calba et al. 2014), so it is important to carry out further research using other approaches. Another significant problem in studies of this type is the effect of scale dependence. For example, in African mammals, mechanistic models containing environmental gradients can explain co-occurrence of different species at local scale but not range-wide scale, which was better explained using biogeographical regions (Buscke et al. 2015). It may be informative to perform the same tests used here on a more local scale, such as within ecoregions, and to develop models based on the current ranges and factors such as dispersal limitations and human pressure. Farneda et al. (2015) used the RLQ-fourth-corner method, along with phylogenetic least square models (PGLS), on communities of Amazonian bats, and found a relationship between functional traits and sensitivity to habitat fragmentation; it would be useful to test this relationship for primates as well. Models using mechanistic environment–trait relationships are more robust (Lavorel and Garnier 2002), as they include less stochasticity and can be more readily used in a species-specific way (Rosindell et al. 2011); however, given the flexibility and diversity of primates shown here, it is likely not possible to produce a general model for primates as a whole. A combination of the analyses used here with other statistical approaches that incorporate human pressures will help to create predictive models that can be used to anticipate species’ responses to environmental change and inform conservation policy.

Conclusions

We aimed to identify whether there are groups of environmental conditions that favor particular groups of traits in primates, leading to distribution patterns according to their biological traits. Despite using a large number of sites across a broad geographical scale, we did not find any significant associations, suggesting that the environmental conditions and traits investigated do not interact. Primate species distributions are limited by habitat preference, but which biological traits drive their habitat preferences remains unresolved. This makes it difficult, if not impossible, to produce the types of mechanistic predictive models that would be useful for conservation aims.