Introduction

Untangling the variation in species composition among sites in a geographic area (beta diversity; Whittaker 1960; Anderson et al. 2011) into its components is fundamental to understand how biodiversity varies in space (Li et al. 2020; Panja et al. 2022; García-Girón et al. 2023) and time (Legendre and Gauthier 2014; Winegardner et al. 2017; Legendre and Condit 2019). In this context, partitioning overall beta diversity into the contribution of each local community (local contribution to beta diversity, LCBD) and of each species (species contribution to beta diversity, SCBD) (sensu Legendre and De Cáceres 2013) may shed light on the distinct factors affecting the organization of metacommunities (Tonkin et al. 2016; Schneck et al. 2022).

The contribution of each local community to beta diversity (LCBD) depends on its compositional uniqueness, that is, the degree of differentiation in species composition in relation to the regional typical community composition (Legendre and De Cáceres 2013). More unique species compositions can be related either to unique environmental characteristics or to dispersal limitation owing to geographic distance among sites (Heino et al. 2017; Landeiro et al. 2018). In freshwater ecosystems, compositional uniqueness was shown to be positively related to environmental uniqueness generated by stream physical characteristics for diatoms (Castro et al. 2019), insects (Schneck et al. 2022) and macrophytes (Bomfim et al. 2023). However, this relationship between compositional and environmental uniqueness is not explicitly considered in most studies (e.g., Tonkin et al. 2016; Bomfim et al. 2023; but see Heino et al. 2022). Moreover, most previous studies on freshwater systems have focused on evaluating local environmental correlates of compositional uniqueness (e.g., Heino and Grönroos 2017; Leão et al. 2020), so that the knowledge about the importance of regional-scale environmental gradients, such as climate, is scarce (Benito et al. 2020; Panja et al. 2022; Martínez-Román et al. 2023).

Species that contribute the most to beta diversity (SCBD) within a region of interest are those that vary more or less than average among sites (Legendre and De Cáceres 2013). For freshwater communities, it has been shown that species with high SCBD have either intermediate (Szabó et al. 2019; Pozzobom et al. 2020) or high occupancy (Vilmi et al. 2017a) and are regionally abundant (Vilmi et al. 2017a; Szabó et al. 2019). However, an alternative approach to better understand why certain species or groups of species may contribute more than others to beta diversity would be to relate SCBD to species traits (Li et al. 2020; Schneck et al. 2022) or functional groups (Heino and Grönroos 2017; Pozzobom et al. 2020) and environmental variables (Schneck et al. 2022). For example, in a study conducted in Brazilian floodplain lakes, functional groups of aquatic macrophytes partially explained SCBD (Pozzobom et al. 2020).

Wetlands are functionally complex ecosystems characterized by fluctuations in water level, which determine their physical, chemical, and biological conditions (Junk et al. 2014). Despite harboring a significant portion of biodiversity, these ecosystems are among the most vulnerable in the world (Junk et al. 2014), especially owing to the influence of factors, such as climate change, urban development, pollution, and invasive species, highlighting the urgency of protection and conservation actions (Maltchik et al. 2004). In Southern Brazil, palustrine wetlands represent a large proportion of wetlands, approximately 90%, and they can vary from permanently flooded to never flooded, but remain saturated for long periods during the annual cycle (Maltchik et al. 2004). They include a variety of formations, such as marshes, shallow lakes, meanders, and floodplains influenced by factors, such as precipitation, surface runoff, and groundwater discharge (Maltchik et al. 2004).

Aquatic macrophytes are a key component in wetlands (De Magalhaes et al. 2016) and are characterized by a wide range of strategies that enables them to establish in distinct habitats (Santamaría 2002; Lacoul and Freedman 2006). Some species can grow through the water surface, while others live floating or submerged in the water column (Chambers et al. 2008; Murphy et al. 2019). Owing to such distinct architecture, the importance of local and regional environmental factors and spatial processes in determining the distribution of species (Alahuhta and Heino 2013; Gillard et al. 2020) differs among life forms (Schneider et al. 2018; Trindade et al. 2018; Garcia-Girón et al. 2023). For example, in subtropical coastal wetlands, it has been shown that the distribution of floating and submerged species was mainly influenced by water quality and spatial variables, respectively, while emergent species, characterized by a broader distribution, were influenced by climatic variables (Trindade et al. 2018). Moreover, it has been suggested that relating SCBD values to macrophyte life forms can improve our ability to detect species that contribute more to beta diversity (Pozzobom et al. 2020; Bomfim et al. 2023). Finally, identifying communities and species contributing the most to beta diversity would help understand key aspects of the organization of macrophyte metacommunities in wetlands.

We investigated the contribution of local communities and species to beta diversity of aquatic macrophytes in coastal wetlands, over c. 640 km in subtropical Brazil. We assessed the environmental and spatial correlates of LCBD and the environmental and biological correlates of SCBD. We expected that: (i) communities with greater compositional uniqueness would be found in environmentally more unique wetlands; (ii) given the large spatial scale of our study, compositional uniqueness would also be related to climatic variables that determine the hydrological changes in wetlands; and (iii) the contribution of emergent species to beta diversity would be lower than of floating and submerged species because the first ones are less dependent on water quality and are more widely distributed.

Material and methods

Study area

We conducted the study in 29 wetlands at the coastal plain of Rio Grande do Sul State, between coordinates (29º16′14.96″ S and 49º37′15.08″ W) and (33º37′25.15″ S and 53º13′46.56″ W), South Brazil (Fig. 1). The coastal plain extends approximately 640 km, covering 22,740 km2 of emerged lands and 14.260 km2 of water surfaces, totaling 37,000 km2 (Schwarzbold and Schäfer 1984). Originating from the Cenozoic, the coastal plain expanded primarily during the Quaternary period through alluvial fans and barrier–lagoon depositional systems, forming large bodies of water such as the Patos lagoon and lakes Mirim and Mangueira (Barboza et al. 2009). Currently, the landscape of the coastal plain consists of estuaries and deltas, marine beaches, rivers and streams, savannas, palm groves, flooded fields, and forests (seasonal, temporary, or permanent), lakes and lagoons, and permanently or temporarily wetlands (known in southern Brazil as banhados) (Becker et al. 2007). The climate of the region is humid subtropical (Maluf 2000). Annual precipitation varies between 1000 and 1500 mm, and the average annual temperature ranges between 16 and 20 ˚C, with average temperatures between 22 and 26  ˚C in the hottest months and between 10 and 15 ˚C in the coldest months (Nimer 1977).

Fig. 1
figure 1

Study area showing the 29 wetlands sampled (green circles) in the coastal plain of Rio Grande do Sul State, Southern Brazil. The inset shows South America, with Brazil shown in green

To select the sampling sites, we chose areas with saturated soils or shallow waters, where vegetation is adapted to moist conditions and flooding, following the definition of wetlands by Mitsch and Gosselink (2000). On the basis of this criterion, we selected freshwater wetlands that allowed us to walk through their entire extent for sampling data. We checked all areas where it was possible to observe the surroundings to ensure they met the objectives of our study. We avoided large wetlands and those that did not have clearly defined border areas, which would be difficult to visually inspect; we also discarded wetlands clearly connected to other aquatic environments, as well as those near monocultures or other human activities. Despite being in a coastal plain, the sampled wetlands did not have any connection with the ocean and are characterized as freshwater (in situ measured salinity = 0 in all 29 sampled wetlands). Additionally, we used geographic coordinates to ensure that the chosen areas represented the coastal plain extensively. The wetlands’ area ranged from 0.19 to 5 hectares, with an average depth of 30 ± 10 cm. Each wetland was sampled once during the austral summer of 2016, a period characterized by low volume of rainfall. We used this dataset previously to evaluate the relative role of environmental and spatial factors on macrophyte species richness and assemblage composition (Trindade et al. 2018).

Aquatic macrophytes

To determine the richness and composition of aquatic macrophyte assemblages, we conducted a thorough visual survey of the vegetation. This study took place during a period of low precipitation, which may influence the size of wetland areas, thus facilitating our walk throughout each visited wetland area. The same researcher recorded the species in all sampled wetlands. The time spent searching for species varied among wetlands (from 60 to 90 min); always being interrupted after 20 min of walking without registering a new species. We identified the species on the basis of specialized literature (Cordazzo and Seeliger 1995; Irgang and Gastal 1996), as well as collaboration with specialists. We registered 114 aquatic macrophytes species: 90 emergent, 14 floating (including free-floating and rooted floating-leaved species), and 10 submerged (including fixed submerged and free-floating submerged species); detailed information is available in Trindade et al. (2018).

Local environmental variables

In each wetland, we used a multiparameter water quality meter (Horiba-U50) to measure the following environmental variables at five random points: dissolved oxygen (DO; mg L−1), pH, and electrical conductivity (COND; µS cm−1; Supplementary Material, Table 1). We also collected three water samples for analyses of total phosphorus (TP; mg L−1; Valderrama 1981; Baumgarten and Rocha 1996) and total nitrogen (TN; mg L−1; Allen et al. 1974). We determined mean depth of the wet area (cm), using a graduated ruler at the same five points we measured the environmental variables. We recorded the altitude (m) and geographic coordinates at the central point of each wetland and used Google Earth Pro and Quantum Gis (QGis 3.22 Essen) to obtain wetland area (ha).

Table 1 Beta regression results on environmental uniqueness and climatic variables as predictors of the variation in compositional uniqueness (LCBD) of macrophytes in wetlands

Climatic variables

We used 12 bioclimatic variables at a spatial resolution of a 1 km2 grid originated from the combination of temperature and precipitation from the global dataset of Worldclim2 (Fick and Hijmans 2017). For our purpose, we obtained the following data: annual mean temperature (AMT; mm), temperature seasonality (TS; standard deviation × 100), maximum temperature of warmest month (MAXTW; ºC), minimum temperature of coldest month (MINTC; ˚C), mean temperature of wettest quarter (MTWeQ; ˚C), mean temperature of driest quarter (MTDrQ; ˚C), annual precipitation (AP; mm), precipitation seasonality (PS; coefficient of variation), precipitation of wettest quarter (PWeQ; mm), precipitation of driest quarter (PDQ; mm), precipitation of warmest quarter (PWQ; mm) and precipitation of coldest quarter (PCQ; mm). These are the same bioclimatic variables selected by Trindade et al. (2018) because of their importance for the organization of macrophyte communities. However, here we opted not to include annual evapotranspiration because the available database is based on the previous version of Worldclim (Hijmans et al. 2005).

Data analyses

We calculated the total beta diversity (BDTotal) and partitioned it into the compositional uniqueness or local contribution (LCBD) and the species contribution to beta diversity (SCBD) following Legendre and De Cáceres (2013). For these analyses, we used presence-absence data and the Hellinger distance. LCBD and SCBD vary between 0 and 1, so that values closer to 1 indicate local communities and species that contribute more to beta diversity (Legendre and De Cáceres 2013).

We used the same approach to calculate local environmental uniqueness (LCEH or local contribution to environmental heterogeneity, as defined by Castro el al. 2019 and Schneck et al. 2022). We used Euclidean distance on two subsets of standardized environmental variables to obtain metrics on the wetlands physical (LCEHPhy; area, depth, and altitude) and water chemical uniqueness (LCEHWC; dissolved oxygen, pH, electric conductivity, total nitrogen, and total phosphorus). To verify which variables contributed more to environmental uniqueness, we correlated the LCEH values with environmental variables using Pearson’s correlation.

First, we used Pearson’s correlation to evaluate how LCBD relates to species richness. Next, we used beta regression (Cribari-Neto and Zeiles 2010) to model the relationship between LCBD and six predictors (LCEHPhy, LCEHWC and the climatic variables MTWeQ, MTDrQ, PS, and PCQ). This final model was defined after excluding the other eight climatic variables owing to multicollinearity (AMT, TS, MAXTW, MINTC, AP, PWeQ, PDQ and PWQ) using a variance inflation factor (VIF) criterion lower than 3. Then, we analyzed the spatial autocorrelation in the model residuals using Moran’s I correlograms. Residuals were spatially independent (P > 0.05, after Bonferroni’s correction for multiple tests; Oden 1984), and thus we did not include spatial variables in the LCBD regression model. Finally, we used Moran’s I correlograms to evaluate whether geographically closer wetlands showed more similar values of compositional uniqueness. The use of Moran’s I based correlograms to test for spatial autocorrelation in the residuals of the regression model and in the response variable (LCBD) followed Zuur et al. (2010) and Heino et al. (2017).

For SCBD we used Pearson’s correlation to explore how it relates to the occurrence of each species (the number of wetlands in which each species occurs). Following, we tested whether macrophyte life forms differ in their SCBD values and we used a beta regression with SCBD as the response variable and life form with three levels as the predictor. After that, we evaluated the pairwise comparisons through simultaneous tests and adjusted P values using the Holm correction. Finally, to advance our understanding on the species-environment relationship for those species that contribute the most to beta diversity, we used the fourth-corner analysis (Dray and Legendre 2008; see Schneck et al. 2022 for a similar approach). We used a matrix of sites and the six predictors, a second matrix of sites and species presence-absence, and a vector of SCBD values. Significance of correlations were assessed through 5999 permutations using model 6 from Dray et al. (2014) and corrected for multiple tests using the Holm correction. This analysis was repeated for the complete set of macrophyte species and separately for each life form.

We performed all analyses in R environment (R Core Team 2023). We used package “adespatial” (Dray et al. 2020) to calculate LCBD, SCBD, and LCEH, “pgirmess” (Giraudoux 2018) for correlograms, “betareg” (Cribari-Neto and Zeileis 2010) for beta regressions, “multcomp” for pairwise comparisons (Hothorn et al. 2008) and “ade4” (Dray and Dufour 2007) for the fourth corner analysis.

Results

Total beta diversity of the macrophyte wetland communities was 0.65. Compositional uniqueness (LCBD) ranged from 0.023 to 0.056 (Fig. 2a) and no spatial structure was observed in LCBD values (Fig. 2b; none distance class was significant; P > 0.05). We found a negative correlation between LCBD and species richness (r = −0.394; P = 0.034; Fig. 3). The regression model showed that compositional uniqueness was positively related to water chemistry uniqueness (LCEHWC) and negatively related to the mean temperature of the driest quarter (MTDrQ) (model pseudo R2 = 0.435; Table 1). Finally, LCEHWC was positively correlated to total phosphorus and electrical conductivity (r = 0.73; r = 0.82, respectively; P < 0.0001).

Fig. 2
figure 2

Spatial variation in compositional uniqueness (LCBD) of macrophyte communities in the 29 sampled wetlands (a) and spatial autocorrelation analysis of LCBD (b). The size of the circles in plot a is proportional to the LCBD values

Fig. 3
figure 3

Correlation between compositional uniqueness (LCBD) and species richness of macrophytes in the 29 sampled wetlands

The SCBD values ranged from 0.002 to 0.023 (0.009 ± 0.01). Of the 114 registered species, 47 species (or 41% of the total) contributed more than the average to beta diversity (Fig. 4a). The three species that most contributed to beta diversity were Schoenoplectus californicus (C. A. Mey) Soják (SCBD = 0.023; occurrence = 18 sites), Nymphoides humboldtiana (Kunth) Kuntze (SCBD = 0.021; occurrence = 20), and Cyperus esculentus L. (SCBD = 0.020; occurrence = 16) (Supplementary Material, Table 2). We found a positive correlation between SCBD values and species occurrence (r = 0.91; P < 0.0001) (Fig. 4b). When comparing SCBD values among life forms, we found that floating species had higher SCBD than emergent species (P = 0.002); however, submerged species did not differ from floating or emergent ones (P > 0.05; Fig. 4c). According to the fourth corner analysis, SCBD was positively correlated with mean temperature of the driest quarter (MTDrQ) and with precipitation of the coldest quarter (PCQ) (Table 2). However, when testing the SCBD-environment separately for each life form, it was clear that this pattern was driven by emergent species (Table 2).

Fig. 4
figure 4

Species contribution to beta diversity (SCBD) of macrophytes and its rank distribution (a), correlation between SCBD and the species occurrence in the wetlands (b) and boxplots of SCBD for the three life forms (c). The colors in plots (a) and (b) correspond to the life form in plot (c). In boxplots, the median is represented by a heavy horizontal line, while the first and third quartiles are depicted by the ends of the box. The whiskers indicate the minimum and maximum values

Table 2 Fourth-corner results on the relationship (Pearson correlation, r) between species contribution to beta diversity (SCBD) and environmental predictors for the total macrophyte communities and separately for each life form

Discussion

Our findings indicate that the compositional uniqueness of macrophyte metacommunities from the studied coastal wetlands, which span approximately 640 km, is related not to wetland location but to local environmental uniqueness and climatic characteristics. Specifically, compositional uniqueness was positively related to local environmental uniqueness on the basis of water chemistry of the wetlands, and negatively related to the mean temperature of the driest quarter. Regarding the species contribution to beta diversity, the floating life form showed the highest SCBD values. Moreover, the species that most contributed to beta diversity were positively correlated with two climatic variables (precipitation of the coldest quarter and mean temperature of the driest quarter) but did not relate to local environmental uniqueness. Despite being well known that water chemistry (Akasaka et al. 2010; Alahuhta et al. 2013) and climate (Alahuhta et al. 2021; García-Girón et al. 2023) influence the diversity of aquatic plants, we showed here that the degree of uniqueness of macrophyte communities and the species contribution to overall beta diversity are also correlated with those variables.

Our results on LCBD showed that the most unique macrophyte communities had a reduced set of species and were found in wetlands characterized by low mean air temperature during the driest period of the year and that differed the most from the average local environmental characteristics. This indicates that regional climate and unique environmental water chemistry conditions played a role in selecting communities with a more unique species composition. Despite understanding beta diversity patterns is not an easy task, as numerous factors can influence the distribution of species locally and regionally (Alahuhta et al. 2013; Vilmi et al. 2017b; Gillard et al. 2020) some previous studies have also found clear correlates of compositional uniqueness from freshwater communities (e.g., Leão et al. 2020; Pozzobom et al. 2020; Schneck et al. 2022). Most of these studies focused on gradients of environmental degradation and found that more unique communities occurred in freshwater environments with reduced forest cover and more degraded conditions (e.g., diatoms and insects: Schneck et al. 2022; aquatic macrophytes: Bomfim et al. 2023). Our results, even without a sampling design focused on a predefined environmental gradient, showed a positive correlation between environmental uniqueness based on water chemistry (LCEHwc) and total water phosphorus or electrical conductivity, variables that are generally associated with increased degradation of aquatic environments (Wu et al. 2020; Liu et al. 2022). We thus suggest that the uniqueness in water chemistry conditions was driven by increased phosphorus concentrations and electrical conductivity, selecting a reduced set of species, and thus resulting in poorer and unique communities.

In addition to water chemistry, the increase in compositional uniqueness with the decrease in mean air temperature during the driest period of the year suggests the importance of wetland hydroperiod in selecting unique communities of aquatic plants. This is because hydroperiod is known to influence species richness and community structure (Neiff 1996; Mitsch and Gosselink 2000; Maltchik et al. 2007; Schneider et al. 2018). During the driest period, high temperatures can cause increased desiccation of wetlands, which can favor the emergent life-form (Trindade et al. 2018). This can lead to some species becoming more common in the overall coastal plain (see Fig. 4b) and, as a result, reduce LCBD.

The absence of a defined spatial structure in LCBD indicates that the spatial location of the wetlands in the landscape was not a key factor in determining the compositional uniqueness of the macrophyte communities. The lack of a spatial pattern may reflect the high dispersal potential of aquatic plants (Viana et al. 2016), which, despite being considered passive dispersers, can reach long distances transported by different vectors (Soons 2006; Soons et al. 2016) such as water, wind, animals, and humans (Santamaría 2002; Lacoul and Freedman 2006; Chambers et al. 2008; Lobato‑de Magalhães et al. 2023). Therefore, our results indicate that niche processes exert more influence than dispersal limitation on the compositional uniqueness of wetland macrophyte communities, at least at a regional scale as the one studied here (~ 640 km).

The result that species with high SCBD values had intermediate to broad distributions was already shown for freshwater organisms (e.g., Pozzobom et al. 2020; Schneck et al. 2022). It could be understood that species with higher SCBD values have less dispersal limitation and greater colonization capacity. Moreover, 41% of the total species had SCBD values above the global average SCBD, indicating that a large number of species contributed to the variation in community compositions along the coastal plain. This is consistent with the high value of global beta diversity we found, suggesting that compositional differences between communities are mediated to a greater extent by the replacement of species with high SCBD than by species with restricted occurrences and low SCBD.

Floating species stood out as having the highest SCBD, similarly as found by Pozzobom et al. (2020). This life-form is strongly dependent on the presence of water and on the limnological characteristics of the wetland (Lacoul and Freedman 2006), being good competitors for resources (Henry-Silva et al. 2008). Despite the potential dependence of floating species from the water column’s nutrient concentrations, no correlation of SCBD with water chemistry uniqueness was observed either for floating or other life-forms. However, the positive correlation between SCBD and climate variables indicates that the species that most contributed to beta diversity occurred at wetlands characterized by high mean air temperature and precipitation at specific periods of the year. Temperature and precipitation can affect the species richness and composition of macrophyte communities (Lacoul and Freedman 2006; Maltchik et al. 2007). For example, temperature can strongly influence the distribution of emergent and floating species, as they remain exposed to the air, unlike submerged species that develop underwater in a more stable environment (Viana et al. 2016). High temperatures during the driest period can also affect the water balance of wetlands, causing the desiccation of environments and, consequently, influencing both the richness and composition of communities (Maltchik et al. 2007). Moreover, precipitation can be one of the main limiting factors for the diversity of aquatic plants owing to fluctuations in water levels (Lacoul and Freedman 2006; Maltchik et al. 2007). Intermittent wetlands, that remain only with saturated soil during a period of the year, limit the presence of submerged species and most floating species, favoring the colonization of emergent species, which can lead to a high contribution to beta diversity, as we found here.

Conclusion

When partitioning the total beta diversity of macrophyte communities, it was shown that local environmental factors and climate were the main correlates of compositional uniqueness. More unique communities had lower species richness and occurred in environmentally more unique sites with reduced mean air temperature at the driest period of the year. Furthermore, SCBD was related to climatic variables, and floating species stood out in their relative importance to overall beta diversity. These results enhance our understanding of the organization of macrophyte metacommunities in wetlands. Studies as the one here are essential to shed light on why certain local communities and some species contribute more to beta diversity than others, especially considering the increasing human impacts on wetlands around the world, mostly related to landscape modification for agriculture, livestock farming, and urbanization, in addition to ongoing climate change that may intensify the effects of these human activities.