Introduction

Beta diversity corresponds to one of the most classic concepts in ecology. Dating back to the late 1960s, it is one of the components of Whittaker’s triad of diversity, providing a link between local (alpha) and regional (gamma) diversities (Whittaker 1960; Anderson et al. 2011). Beta diversity can be defined as either variation, in which interest lies on the overall variation in community composition among communities, or a directional change in community composition, in which pairwise comparisons take place allowing to examine how community composition is linked to a gradient of interest, such as geographical or temporal (Anderson et al. 2011).

Of increased interest has been the recognition that beta diversity can arise by two complementary processes: species turnover and nestedness (Baselga 2010, 2012). Turnover occurs when species are replaced along a gradient without changes in the number of species between communities, while nestedness occurs when species are lost or gained, promoting changes in species richness between sites and reflecting a nested pattern with species-poor sites as subsets of the richest ones (Baselga 2010, 2012). The partitioning of beta diversity into these two components has provided new insights and advanced the understanding of the mechanisms and processes underlying the factors structuring communities (Baselga et al. 2012; Dobrovolski et al. 2012; Hill et al. 2017; Soininen et al. 2017).

Considering the main factors driving beta diversity along geographical gradients, the influence of the spatial distance and environmental differences between sites has been pervasive, dominating much of the ecological literature. These gradients highlight the importance of species’ life-history traits that confer them different dispersal abilities and niche breadth on the factors underlying their community structure (Nekola and White 1999; Tuomisto et al. 2003; Cottenie 2005; Soininen et al. 2007; Buckley and Jetz 2008; Qian and Ricklefs 2012; Hill et al. 2017; Gómez-Rodríguez and Baselga 2018). Also, species with contrasting life histories tend to show differences in their response along these gradients. For example, the beta diversity of communities of dispersal-limited species tends to be influenced to a higher degree by spatial dynamics in comparison to better dispersers (Nekola and White 1999; Qian 2009; De Bie et al. 2012; Qian and Ricklefs 2012). Conversely, species with larger niche width can establish and persist in different environments, which reduce the effects of environmental differences on their community structure in comparison to species with narrower environmental niches (Buckley and Jetz 2008). Comparative analyses among groups with distinct biological characteristics in a beta-diversity framework are thus not only essential to understand how community composition changes along geographical gradients, but they have also allowed for different hypotheses to be tested to untangle the drivers of community assembly (Nekola and White 1999; Tuomisto et al. 2003; Qian 2009; Qian and Ricklefs 2012; Hill et al. 2017; Gómez-Rodríguez and Baselga 2018).

Because of their biological differences, bats, rodents, and marsupials tend to respond differently to the ecological mechanisms structuring their communities (Lyons and Willig 1997; Arita and Rodríguez 2004). Bat species have flight adaptations, which allow them to disperse over different distances (Norberg and Rayner 1987; Esbérard et al. 2017). This is the main reason they are expected to be better dispersers than rodents and marsupials (Arita and Rodríguez 2004). Flight adaptations thus reduce the effects of spatial dynamics on bat distribution, making them more prone to be influenced by environmental variations between sites, mainly in terms of climate and vegetation structure (Stevens 2004; López-González et al. 2015; but also see Varzinczak et al. 2018). Opposite patterns are expected for rodents and marsupials, since their dispersal limitation tends to overshadow the influence of the environment, translating into a strong influence of spatial dynamics in their community structure (Arita and Rodríguez 2004; Dambros et al. 2015). However, no study has addressed formally this hypothesis, which could be essential to broaden the understandings on the mechanisms structuring mammal communities along geographical gradients.

In this study, we compare beta diversities for communities of bats, rodents, and marsupials from the highly diverse Atlantic Forest of South America. We first determined the relative importance of the turnover and nestedness in driving beta diversity for each group. Then, we performed a within- and between-taxa comparison addressing two main hypotheses, considering the factors underlying variations in their community composition (fully described in Table 1). Based on the broad ecological literature covering the relationship of beta diversity along space and environment, the core of our expectations is to find differences in the drivers of beta diversity and its components, both within and between these mammals. We expect communities of rodents and marsupials to show similar structures along environmental and spatial gradients compared to bats. Also, given their dispersal limitations, we predict that the beta diversity of rodents and marsupials should be higher with the space, but not for flying bats. Similarly, between groups, we expect the beta diversity of rodents and marsupials to be more influenced by space in comparison to bats, for which we expect a predominance of environment on their community structure.

Table 1 Hypotheses and predictions that guided our work on the effects of space and environment on the beta diversity of communities of bats, rodents, and marsupials from the Atlantic Forest

Methods

Background: an overview of the Atlantic Forest

The Atlantic Forest is a region of high importance for biodiversity, since it is the second largest tropical forest in South America, extending from Northeastern Brazil to the inner-south of the continent in Paraguay and Argentina (Oliveira-Filho and Fontes 2000). It encompasses a broad latitudinal extent, including tropical and subtropical regions and a wide range of altitudinal gradients, allowing for several climatic regimes that provide a diverse set of environmental features throughout its extension (Oliveira-Filho and Fontes 2000; Ribeiro et al. 2009). These conditions produced a highly complex and heterogeneous forest, with high levels of biological diversity (Ribeiro et al. 2009). Further, the presence of several endemic and threatened species, together with a long history of anthropogenic activities that reduced most of its original land-cover, makes the Atlantic Forest one of the main hotspots for biodiversity conservation worldwide (Myers et al. 2000).

Data on Atlantic Forest mammal assemblages

We used compositional data for Atlantic Forest mammal assemblages obtained from the Atlantic bats (Muylaert et al. 2017) for bats and Atlantic small-mammal (Bovendorp et al. 2017) for rodents and marsupials. Briefly, these are comprehensive datasets representing the largest effort to date to assemble information on the distribution and community composition of several taxa and sites along the whole extension of the Atlantic Forest. All taxonomies were reviewed by experts to make these data as accurate as possible. Further details on the methodology employed to assemble these datasets are fully described therein. Because data from different sources are subject to differences in sampling effort, we controlled for this shortcoming by selecting only communities for which sampling effort information was made available (see below). Overall, our final database included 174 bat, 293 rodent, and 231 marsupial communities throughout the Atlantic Forest (Fig. 1). Codes for all communities are provided in the Appendix S1 and can be easily retrieved from the original databases. The number of species encompassed is representative: 99 for bats (85% of all bat species recorded in the Atlantic Forest), 78 for rodents (80%), and 21 for marsupials (95%). For each taxon, we transformed data into binary matrices representing the species incidence in each community.

Fig. 1
figure 1

Distribution of a bat, b rodent, and c marsupial communities along the Atlantic Forest (green area) used to test patterns of mammal beta diversity along spatial and environmental gradients. Points falling out of the green area represent sites located in enclaves of the Atlantic Forest in South America

Beta-diversity metrics: total beta diversity and its components

By means of a pairwise approach, we calculated in R (R Core Team 2016) with the “betapart” package (Baselga and Orme 2012) the variation in community composition between sites for each taxon using the Sørensen index of similarity:

$$\beta_{\text{sor}} = \frac{2a}{2a + b + c} ,$$

in which a is the number of shared species between two communities, and b and c are the number of exclusive species in each community. This index expresses the relative similarity between two communities in terms of their taxonomic composition, and therefore, its complement represents the variation in community composition for a given pair of sites.

We used the additive partitioning of beta diversity into its turnover (βsim) and nestedness (βnes) components to estimate the importance of species turnover and loss, respectively, in generating the beta diversity for each community pair (Baselga 2010, 2012). The βsor index ranges from 0 to 1, and the sum of βsim and βnes equals βsor for each community pair. Thus, if the main driver of the taxonomic variation between communities is the species replacement, then the turnover component (βsim) is higher and corresponds to the largest fraction of the βsor. On the other hand, if communities differ in their composition because species-poor sites are subsets of the richest ones, then the nestedness component (βnes) accounts for most of βsor. Although other approaches for decoupling beta diversity into different components are available (reviewed in Legendre 2014; Baselga and Leprieur 2015), the interpretation of turnover and nestedness components from Baselga (20102012) is straightforward, and these two indexes have been shown to be truly independent from each other (Baselga 2010; Baselga and Leprieur 2015). This approach yielded for each taxon three pairwise matrices representing the importance of each beta-diversity component in driving taxonomic differentiation between sites.

Spatial and environmental differences between sites

From the geographic coordinates of each site, we calculated a pairwise matrix of geographic distance (spatial distances) in kilometers between communities using the “fossil” package (Vavrek 2015) in R. We characterized the environment of each community with variables representing:

  1. 1.

    climatic gradients: mean annual temperature, temperature seasonality, mean annual precipitation, and precipitation seasonality, all from the WorldClim database (Hijmans et al. 2005);

  2. 2.

    vegetation structure: canopy height (Simard et al. 2011);

  3. 3.

    topography: altitude (USGS 2003);

  4. 4.

    energy: potential evapotranspiration and actual evapotranspiration (Trabucco and Zomer 2009) and actual evapotranspiration (Trabucco and Zomer 2010). The potential evapotranspiration is a measure of the energetic balance at a given site independent of water availability, while the actual evapotranspiration is the real evaporation in a region and thus depends on the potential evapotranspiration and water availability (Currie 1991).

All variables represent different hypotheses by which species distributions and community diversity in a broad macro-ecological context can be influenced by environment (as reviewed in Currie 1991; Field et al. 2009; Stein et al. 2014). Moreover, such environmental parameters are also thought to exert influence on the diversity patterns for the groups we are studying (Stevens 2004; Stevens and Tello 2012; Dambros et al. 2015; López-González et al. 2015). To circumvent the multicollinearity between environmental variables, we summarized environmental data in a principal component analysis (PCA) with the “vegan” package (Oksanen et al. 2017) in R on their standardized (mean = 0, SD = 1) values. Then, we selected the PCA axes that accounted for most of the variation in environmental data using the broken stick criteria (Legendre and Legendre 2012). Scores of communities along these axes were then used to calculate a matrix of pairwise Euclidean distances separately for each taxon analyzed. Differences in these scores represent how much each community pair is similar or different in relation to their environmental features.

Estimating the influence of space and environment on beta diversity

For each group, we calculated the influence of space and environment on each beta-diversity component (βsor, βsim, and βnes) using partial Mantel’s correlation tests. The strength of the correlation was determined with the Mantel’s statistics (r) (Legendre and Legendre 2012). High absolute values of r indicate a stronger correlation of beta diversity with the gradient analyzed. Mantel tests were performed with the “ecodist” package (Goslee and Urban 2007) in R. In all analyses, we controlled the differences in sampling effort between communities (Appendix S2) using a pairwise matrix of Euclidean differences in sampling effort as a covariate. Also, we assessed the significance of each partial Mantel’s r using 10.000 permutations.

Comparing the drivers of beta diversity for bats, rodents, and marsupials

To test our initial hypotheses, we performed within- (H1; Table 1) and between-group (H2; Table 1) comparisons. For H1, we tested for differences in each group, considering the effects of space and environment on its community structure. We combined the values of r from the Mantel tests for each component of beta diversity into a new parameter, hereafter called rdiff. It is simply the differences from the observed value for the original correlation coefficient of beta diversity between the geographic distance and environmental differences between sites:

$$r_{\text{diff}} = r_{\text{space}} - r_{\text{environment}} .$$

The observed difference was then compared with a null model in which we permutated the rows in the original matrices 1000 times and recalculated a null distribution of rdiff in relation to space and environment for each taxon. With these permutations, the relationship between communities with their environmental parameters and spatial locations was broken, generating a null distribution of sites along environment and space. Then, we compared the observed values with those obtained in the permutations, calculating the probability of obtaining by chance values of rdiff higher than or equal to the observed. It worth note that while partial Mantel tests provide probabilities for each correlation coefficient, it has limitations in comparing two or more coefficients, an issue solved using the differences in the strength of correlation and the permutations. Under the null hypothesis of no difference between spatial distance and environment in shaping beta diversity for each group, rdiff should be random in comparison to our null distribution. We adopted 0.05 as the cut-off level.

For our H2, in which we tested whether there are differences between groups in the processes structuring their communities, we used a similar approach compared to our H1 test. For this case, however, we were interested in the differences between taxa, and thus we calculated the observed differences for the parameter between groups and considering each gradient. Thus, for a given pair of taxa:

$$r_{{{{{\text{diff}}\,{\text{space}}} \mathord{\left/ {\vphantom {{{\text{diff}}\,{\text{space}}} {\text{environment}}}} \right. \kern-0pt} {\text{environment}}}}} = r_{{{{\text{space}} \mathord{\left/ {\vphantom {{\text{space}} {\text{environment}}}} \right. \kern-0pt} {\text{environment}}}}} ({\text{Taxa}}1) - r_{{{{\text{space}} \mathord{\left/ {\vphantom {{\text{space}} {\text{environment}}}} \right. \kern-0pt} {\text{environment}}}}} ({\text{Taxa}}2) .$$

We then compared these results with a null distribution of these differences in a similar way as in H1, calculating the probability of obtaining by chance a difference higher than or equal to the one we observed for each group. Under the null hypothesis of no difference between taxa along a gradient (whether spatial or environmental), the observed differences of each parameter will be random in comparison to our null distribution. Because testing H2 involves three paired comparisons between groups (bats × rodents, bats × marsupials, and rodents × marsupials), we used a Bonferroni correction for the significance level, adopting a cut-off of 0.0166 (0.05/3). All null models and comparisons were performed in R.

Results

Overall patterns of beta diversity for bats, rodents, and marsupials

Communities of bats, rodents, and marsupials present similar patterns of beta diversity in the Atlantic Forest (Fig. 2). Considering all pairwise comparisons between communities, their beta diversity (βsor) is relatively high, although for bats the variation in community composition is more moderated (mean βsor-bats = 0.64 ± 0.18) compared to rodents (mean βsor-rodents = 0.83 ± 0.19) and marsupials (mean βsor-marsupials = 0.82 ± 0.24). We found that for all groups the species turnover (βsim) is the main responsible for differences in taxonomic composition between communities, again with moderated results for bats (mean βsim-bats = 0.45 ± 0.24) in comparison to rodents (mean βsim-rodents = 0.74 ± 0.30) and marsupials (mean βsim-marsupials = 0.73 ± 0.36) (Fig. 2). The contributions of nestedness were higher for bats (mean βnes-bats = 0.18 ± 0.17) than for rodents (mean βnes-rodents = 0.09 ± 0.15) and marsupials (mean βnes-marsupials = 0.08 ± 0.17) (Fig. 2).

Fig. 2
figure 2

Distribution of pairwise values for the total beta diversity (βsor) and its turnover (βsim) and nestedness (βnes) for communities of bats, rodents and marsupials in the Atlantic Forest. Boxplots show median, lower 5% and upper 95% quartiles, as well as outliers, for each beta diversity component

Influence of space and environment on the community structure of bats, rodents and marsupials

For all groups, we found that βsor and βsim are positively associated with variable strength to the spatial distance and environmental differences between sites (Table 2; Figs. 3, 4). Conversely, βnes is mainly negatively and weakly associated to space and environment. Except for the βnes of rodents and marsupials along environmental gradients, all correlation coefficients are significant.

Table 2 Comparison of the observed differences for the correlation coefficient (r) between the spatial distance (Space) and environmental dissimilarities (Environment) between sites for the beta diversity of bats, rodents, and marsupials from the Atlantic Forest
Fig. 3
figure 3

Relationships between beta diversity (βsor) and its turnover (βsim) and nestedness (βnes) components and the geographical distance for communities of bats, rodents, and marsupials in the Atlantic Forest. r = Mantel statistics depicting the correlation of each component along spatial gradients

Fig. 4
figure 4

Relationships between beta diversity (βsor) and its turnover (βsim) and nestedness (βnes) components and the environmental differences for communities of bats, rodents, and marsupials in the Atlantic Forest. r = Mantel statistics depicting the correlation of each component along spatial gradients

For bats, we found that all components of beta diversity did not show differences in the strength of correlation with the spatial distance and environmental dissimilarities between sites (Table 2). Such a result is the opposite of what we predicted initially, given bats’ flight capabilities (P1; Table 1). For rodents and marsupials, however, our results indicate a stronger correlation between all beta-diversity components and spatial distance than with environment (Table 2), which is in line with our initial predictions, considering their reduced capacity for dispersal (P1; Table 1).

Comparing between groups, for rdiff, bats presented a stronger relationship of βsor and βsim with environmental gradients compared to rodents and marsupials, and for βnes along environment in comparison to rodents (Table 3). All other comparisons were non-significant. Overall, this indicates that changes in community composition of all three taxa have the same trend with the geographic distance. Furthermore, in all comparisons of rdiff, rodents and marsupials did not present differences, supporting our initial predictions considering the similarities in biological traits between these mammals in comparison to bats. Therefore, we found only partial support for our hypothesis H2 and our prediction P2, mainly considering the comparison between non-volant small mammals (Table 1).

Table 3 Comparison of the observed differences for the correlation coefficient between the spatial distance (Space) and environmental dissimilarities (Environment) between sites for the beta diversity of bats, rodents, and marsupials from the Atlantic Forest

Discussion

Understanding the influence of spatial and environmental gradients on beta diversity has been essential to improve the knowledge about the mechanisms structuring communities. For mammals, however, there is a lack of comparative studies applying a community ecology approach in a broad macroecological context to test the influence of these gradients on their beta diversity patterns. Here we used a comprehensive database for communities of bats, rodents and marsupials from the Atlantic Forests of South America to ask whether differences in biological characteristics, mainly in terms of dispersal abilities, translate into different processes structuring their communities in this region. Besides revealing that the beta diversity for these groups is governed by a similar process of species turnover between communities, our results suggest only partial support for our initial hypotheses on the differential influence of spatial and environmental dynamics on the structure of these mammals’ assemblages.

A dominance of space over environment in driving rodent and marsupial community compositions can be expected based on their low vagility. In agreement with this prediction, previous studies showed that the beta diversity of these groups in the Atlantic Forest was explained mainly in terms of the spatial distance between sites (Dambros et al. 2015). Furthermore, besides their limited dispersal, such spatial influence probably reflects biogeographical processes linked to past vicariance events that caused the fauna of these non-volant small mammals to be distributed in several centers of endemism along the Atlantic Forest, with high degree of community compartmentation in relation to their species composition (Costa et al. 2000; de la Sancha et al. 2014). Overall, these factors cause a common spatial structure in non-volant small mammal community composition (de la Sancha et al. 2014; Dambros et al. 2015), as we observed in this study. Bats, however, did not show differences in the strength of correlation of their beta diversity between space and environment, against our initial predictions of an increased effect of environment in comparison to space on bat diversity (Stevens 2013; López-González et al. 2015). These results thus indicate the importance of niche dynamics due to bats’ environmental requirements coupled with biogeographical mechanisms such as dispersal limitation or biogeographical barriers that causes a spatial pattern in the community assembly of volant mammals, as previously observed at regional (Stevens et al. 2007) and continental scales (Varzinczak et al. 2018).

Although makes sense to initially expect the beta diversity of rodents and marsupials to be influenced mostly by the spatial configuration of sites owing to their low dispersal, which was supported by our results, non-volant small mammals are not homogeneous in dispersal abilities, and some species can be influenced to a higher degree by environmental dynamics compared to space (Stevens and Tello 2012). Additionally, Maestri and Patterson (2016) found differences between caviomorph and sigmodontine rodents considering the importance of environmental and topographic variables influencing their diversity in the Neotropics. Analogously, Neotropical bat species are influenced in different ways by the environment. For example, phyllostomid bats have been shown to be highly dependent on tropical climatic conditions and vegetation structure because of their metabolic constraints and plant-based diet for most species, respectively (Stevens 2004, 2013). Nonetheless, at larger scales (e.g., Neotropics). phyllostomid beta diversity was better predicted by spatial rather than environmental or historical dynamics (Varzinczak et al. 2018). On the other hand, insectivorous vespertilionid bats are better adapted to cope with the temperate climates found at extra-tropical areas (Stevens 2004). Such differences and their influence constitute a likely explanation of why our results for bats departed from our initial expectations. Altogether, these factors highlight that differences within each group can complicate attempts to make a single prediction for the effect of space and environment on beta-diversity patterns. Accordingly, the effect of the phylogenetic scale (sensu Graham et al. 2018) chosen to conduct analysis constitutes an important question that can be further addressed from a beta diversity perspective, since it could influence the inferences drawn from the multiple processes underlying the community structure within the major clades as the ones studied here.

Differences in the factors structuring communities are commonly found when comparing groups with distinct dispersal abilities and niche width, and comparative analysis have uncovered interesting patterns that agree with theoretical predictions based on life-history traits and their influence on beta-diversity patterns. For example, amphibians have a higher turnover rate in community composition along spatial and environmental gradients compared to birds because of their low dispersal abilities and high sensitivity to changes in environmental conditions (Buckley and Jetz 2008). For plants, taxa with high-vagile propagules have beta diversity weakly related to the spatial distance in comparison to dispersal-limited ones (Tuomisto et al. 2003; Qian 2009). Here, comparisons between rodents and marsupials supported our hypotheses in all scenarios and for all components of beta diversity, highlighting that their biological similarities mainly considering their dispersal limitations in fact translate into similar responses underlying their community assembly along geographical gradients. Both groups did not show differences in the strength of the processes related to variations in the taxonomic composition of their communities. Nonetheless, rodents and marsupials exhibit differences in basic niche attributes (e.g., resources and habitat use) at local scales, which favor their coexistence by reducing competitive pressures (Galetti et al. 2016). When comparing bats with non-volant small mammals, however, we found that the community composition of bats is more sensitive to environmental changes at this large scale in comparison to rodents and marsupials (Table 3). Also, although differences in life-history traits linked to dispersal seem to be reasonable to expect differences in the effects of space and environment among groups, we did not observe differences between bats and non-volant small mammals for the influence of the space on their community dynamics. This is surprisingly by at least two reasons. First, it is counter intuitive and goes against the classical ecological literature considering that better dispersers tend to present a reduced effect of space in comparison to better dispersers (e.g., Nekola and White 1999; Soininen et al. 2007; Qian 2009, De Bie et al. 2012). Second, the abilities of bats to fly are a distinguishing characteristic in comparison to rodents and marsupials. Therefore, besides demonstrating a similar spatial trend in their community composition along the Atlantic Forest, these comparisons shed light on the possibility that historical contingencies due to similar biogeographical dynamics and common barriers to dispersal are influencing spatially the composition of their communities in this region, regardless of their marked differences in dispersal abilities. In fact, there are evidences that several mammal species present common patterns of distribution that have been influenced by similar processes influencing the complex geological history of the Atlantic Forest (Costa and Leite 2012).

When considering βnes, we did not find strong support for our hypotheses. In all cases, the correlation of βnes with the gradients studied here was weak in comparison to the ones found for its βsor and βsim counterparts (Figs. 3, 4; Table 3). It is likely that additional processes other than spatial and environmental ones might be responsible for a nested pattern between communities. For example, the climatic history following the Last Glacial Maximum (21,000 years before the present) caused alterations in species’ geographical ranges, being as important as space and environment in driving nestedness among vertebrate assemblages (Baselga et al. 2012; Dobrovolski et al. 2012). Also, Dobrovolski et al. (2012) showed that groups with different niche widths and dispersal abilities responded differently to these dynamics. Our focus here was mainly to compare the effects of spatial distance and current environmental conditions on these mammals, so we did not address such potential role of history in shaping their community structure. Nonetheless, these results sum up with previous ones highlighting the importance of separating beta diversity into its different components to understand how communities are structured along different gradients (Hill et al. 2017; Soininen et al. 2017).