Introduction

Most species inhabit heterogeneous environments to which they adapt. As a result, species often show gradual changes in morphologies, behaviors or genetic composition across their range, which often coincide with environmental variation. In our current view of adaption as the result of character optimization by natural selection, the degree of adaptation of a local population is defined by how close its mean phenotypic value is to its local optimum. Many evolutionary processes are involved in making the population sit more or less close to its adaptive peak. Besides selection, pulling the population toward its peak, mutation, drift and migration will mainly cause deviations away from it (Lenormand, 2002; Blanquart et al., 2012). In particular, gene flow, mediated by migration between divergent habitats, will decrease population phenotypic divergence and limit local adaptation by bringing in locally maladapted alleles and reducing mean population fitness, which is described as migration load. If too strong, gene flow may eventually cause local adaptation to collapse by homogenizing allele frequencies across populations. Nevertheless, under migration–selection balance, an equilibrium phenotypic divergence may be maintained that is smaller than the environmental divergence (Slatkin, 1987; García-Ramos and Kirkpatrick, 1997; Hendry et al., 2001; Lenormand, 2002; Huisman and Tufto, 2012), and, for instance, may cause phenotypes to vary more gradually across space than the environment does (Kirkpatrick and Barton, 1997). The population phenotypic differentiation that ensues is the result of the differentiation of allele frequencies between populations. However, if the phenotype is directly influenced by the environment, genetic and phenotypic differentiations can be decoupled (Crispo, 2008).

A phenotype is plastic and, although genetically determined, is also directly influenced by the environment. Phenotypic plasticity has long been recognized as a ubiquitous property of organisms, whereby a single genotype may express different phenotypes in different environments (Woltereck, 1909; Bradshaw, 1965; Scheiner, 1993). Whether plasticity aids adaptive evolution depends on how it improves the fitness of individuals. A plastic response is said to be ‘adaptive’ when it allows genotypes to express phenotypes more closer to the environmental optimum, and it is called ‘maladaptive’ otherwise (Bradshaw, 1965; Stearns, 1989; Ghalambor et al., 2007; Hendry, 2016). Numerous examples of adaptive and maladaptive plasticity exist in nature. For instance, freshwater snails (Radix balthica) exhibit a high diversity in shell coloration within their distribution range. Ahlgren et al. (2013) showed that these differences could be explained (at least partially) by adaptive plastic responses to heterogeneous environments as snails respond to predator cues and ultraviolet light by changes in shell pigmentation. Similarly, metabolic rates in ectotherms are tightly linked to ambient temperatures, and individuals transferred to lower temperatures (for example, higher latitudes and altitudes) show a decreased growth rate. However, colder environments often have shorter growing seasons and require a faster growth to complete the life cycle within the growing season, which makes the plastic response maladaptive (Merilä et al., 2000). Nonetheless, populations of ectotherms in cold environments often exhibit similar or even higher growth rates compared to ectotherms in warmer habitats by genetically compensating for the maladaptive plastic response (Conover and Present, 1990). By this process of genetic compensation, patterns of countergradient variation arise when genetic differences are opposite to environmental differences between populations, which received broad attention in the field of ecology and evolution (Levins, 1969; Conover and Schultz, 1995; Grether, 2005). Examples of countergradient variation have been repeatedly revealed in common garden and reciprocal transplant experiments (Conover et al., 2009) and highlight that phenotypic plasticity can decouple the phenotypic from the genetic divergence observed between populations.

Although these effects of phenotypic plasticity have been recognized early on in evolutionary biology (Woltereck, 1909; Johannsen, 1911; Bradshaw, 1965; Levins, 1969), the implications of a break in correspondence between genetic and phenotypic divergence are as relevant as ever. It is especially genetic divergence that receives broad attention at the present time. Experimental approaches and molecular genetic methods now enable to pinpoint the molecular basis of local adaptation, ecological diversification and speciation (Whitlock, 2008; Seehausen et al., 2014; Rellstab et al., 2015; Whitlock and Lotterhos, 2015) and link ecological with evolutionary processes (Pelletier et al., 2009). However, genetic divergence is not guaranteed to cause phenotypic differentiation if resulting from genetic compensation (Grether, 2005) or may even be favored by adaptive plasticity depending on the timing of development relative to selection and dispersal (Thibert-Plante and Hendry, 2011). Thus, a full understanding of evolution in structured populations requires to also consider phenotypic plasticity because genetic divergence and phenotypic plasticity are alternative solutions to achieve trait divergence, and they not only co-occur but interact with each other (Schlichting and Pigliucci, 1998). While empirical studies often reveal possible outcomes of such interactions and contribute to a better understanding of genetic evolution (Dayan et al., 2015; Ghalambor et al., 2015), a quantitative theory is missing, but necessary to better weight the contributions of potential causative factors (Crispo, 2008). Most theoretical studies of phenotypic plasticity in heterogeneous environments have focused on the evolution of plasticity itself (Via and Lande, 1985; Sultan and Spencer, 2002; Chevin and Lande, 2011) rather than trying to quantify the effect of plasticity on genetic and phenotypic differentiation per se (but see Crispo, 2008, for a conceptual model). Moreover, few studies consider maladaptive plasticity in the context of adaptation with gene flow despite it being considered widespread in nature (Crispo, 2008; Hendry, 2016) and potentially playing a key role in the evolution of population adaptive divergence (for example, Ghalambor et al., 2015).

Our goal is to quantify the effect of plasticity on genetic and phenotypic differentiation and divergence between populations adapted to divergent habitats. To this end, we extend a simple two-patch quantitative genetic model (Hendry et al., 2001) that describes the combined effect of selection, gene flow and genetic variance on phenotypic divergence. We incorporate phenotypic plasticity in this model as a two-parameter reaction norm (intercept and slope) and derive phenotypic divergence between the two patches at migration–selection equilibrium. We also derive simple formulas for indices of phenotypic and genetic differentiation (PST and QST), and use individual-based simulations to estimate the effect of phenotypic plasticity on population differentiation at neutral (FST) and adaptive (FSTQ) loci. Differentiation indices, either at the trait or the locus level, are important tools widely used to assess the degree of local adaptation in natural populations or to detect loci under selection (Lewontin and Krakauer, 1973; Spitze, 1993). In accordance with the verbal model of Crispo (2008), we show analytically how adaptive phenotypic plasticity directs phenotypic divergence and differentiation toward the trait optima while reducing genetic differences between populations. Maladaptive phenotypic plasticity has mostly opposite effects, favoring genetic differences between populations while reducing phenotypic differences. It also has the counterintuitive effect of inducing larger phenotypic divergence than with partially adaptive plasticity for some parameter values by reducing the effective migration rate between divergent populations. Finally, our approach highlights the consequences of variation in a species’ ecology by modeling different timings of events in its life cycle.

Materials and Methods

Mathematical models

The quantitative genetic model of Hendry et al. (2001) predicts the difference between the average phenotypes (DP) of two populations (i and j) at migration–selection equilibrium under weak selection. These two populations differ in their local phenotypic optima (Θi, Θj) underlain by an environmental difference (ei, ej). Gene flow between the two populations (mi, mj) counteracts divergent selection and transfers ‘maladapted’ genotypes to the other population (Figure 1). We model symmetrical migration rates (mi=mj), constant strength of selection and equal population sizes, for a species with discrete, nonoverlapping generations similar to the original model. To facilitate a direct comparison between the Hendry et al. (2001) model and our extension, we adopt many of their notations, while using the term migration instead of mixing.

Figure 1
figure 1

Two populations (i, j) inhabit different environments and consequently exhibit different local phenotypic optima (indicated by the crosses in orange and blue). Gene flow may cause a deviation of the average phenotypic value of each population (orange and blue circles) from their trait optima. A Gaussian function describes the fitness of different phenotypes in the respective population (dotted lines) with the variance (ω2) determining the local selection strength. Gene flow between the two populations (arrows) moves genotypes to the other population at specific rates (mj and mi correspond to backward migration rates). Because of phenotypic plasticity, a change in the environment causes a change in the expressed phenotype (DE=g1 (ejei)). The degree of phenotypic plasticity (g1) is assumed to be constant in space and time. While DP is indicating the difference between average phenotypes of both populations (DP=zjzi), DG stands for genetic divergence (DG=g0jg0i). The parameter Dθ represents the difference between the local phenotypic optima (Dθ=θjθi).

We extended the model of Hendry et al. (2001) by adding plasticity in the form of a linear norm of reaction (NoR), where the phenotype (z) of an individual is expressed in dependence of the genotype (g0—intercept, g1—slope), the environment (e) and a normally distributed residual environmental component within populations ().

For all investigated scenarios, we assume that the degree of phenotypic plasticity is identical in both populations (g1i=g1j=g1) and constant over time. Importantly, we consider the evolution of phenotypic plasticity to be at an equilibrium state that is caused by a balance between costs and benefits of plastic responses (Via and Lande, 1985; Lande, 2009; Scheiner and Holt, 2012), physiological or genetic constraints (Langerhans and DeWitt, 2002) and by correlations between environmental variables (Chevin and Lande, 2015). We thereby do not rule out the possibility of evolving phenotypic plasticity but just do not describe explicitly the causes for specific equilibrium levels of plasticity.

Phenotypic and genetic divergence (Migration–Selection)

In the first model, dispersal, and thus migration, occurs in each population before selection. Extending the original Hendry et al. (2001) model, the average trait values after migration are derived from the initial mean trait values in population i and j (, , see Equation (1)) and the proportion of immigrants from the other population (mi, mj):

The migration rates mi and mi are independent of population characteristics (for example, population density or the phenotypes or genotypes of migrants) and represent effective migration rates. Effective migration rates deviate from census migration rates (mci, mcj) when migrants differ from residents in their fitness (compare Supplementary Figures S1a–h with Supplementary Figures S2a–d). The phenotype of migrating genotypes is expressed in the new environment after migration. This type of plastic response could either refer to developmental phenotypic plasticity, when individuals migrate prior to development (for example, seed dispersal; Beldade et al., 2011), or to labile phenotypic plasticity, when phenotypes can be adjusted multiple times during the life of an individual (West-Eberhard, 1989; Scheiner, 1993; Lande, 2014). Adding the effect of viability selection, the mean trait value after selection and reproduction (zms) can be calculated from zm, the additive genetic variance within populations (Gw, the variance in g0 within the respective population before selection) and the selection gradient (β(z)):

As the migration rates are independent of population density and population fitness in these equations, viability selection corresponds to soft selection. Subsequent calculations of the change in mean trait value between generations and of the change in the difference between mean trait values (ΔDPzj−Δzi),

allow to solve for the difference between mean trait values DP=zj−zi=g0j+ g1ej−g0i−g1ei at equilibrium (ΔDP=0):

In all scenarios, the parameter corresponds to the total effective migration rate . Assuming a Gaussian fitness function, weak selection and normally distributed phenotypes, the selection gradient becomes (Via and Lande, 1985). The difference in mean trait values between populations at equilibrium () is obtained by further assuming equal phenotypic (Pwi=Pwj=Pw) and additive genetic (Gwi=Gwj=Gw) variances within populations, and an environmental difference (ejei) that corresponds to the difference between local phenotypic optima (DΘj−Θi), such that the plastic change of the phenotype DE=g1 (ej−ei; Figure 1) can be expressed as DE=g1 DΘ. The equilibrium divergence then is

Equation (6) shows that the equilibrium phenotypic divergence is a linear function of g1, the extent of phenotypic plasticity (Figure 2a). It reduces to the expression of Hendry et al. (2001) when g1=0. If plasticity is perfectly adaptive (g1=1), Equation (6) becomes DP=DΘ; the two-population mean phenotypes are at their optimum irrespective of the amount of gene flow. In general, adaptive plasticity (0<g1<2 in our scenarios) reduces the effect of gene flow and shifts DP toward the optimal divergence DΘ (Figure 2a). Note that hyperplasticity, which describes plastic responses in the direction of, but larger than perfect plasticity (g1>1; Scheiner and Holt, 2012), can be adaptive and can reduce the difference between DP and DΘ (1<g1<2). On the other hand, when plasticity is maladaptive (g1<0; g1>+2), phenotypic divergence deviates more strongly from the optimal divergence and can even become negative when is large (Figure 2a).

Figure 2
figure 2

Phenotypic divergence (a and c) and genetic divergence (b and d) predicted by our models, as a function of phenotypic plasticity (g1) in the three life cycles: Migration–Selection (solid lines), Selection–Migration (dotted lines) and Development–Migration–Selection (dashed lines). Results are for phenotypic and additive genetic variance Pw=Gw=0.5, selection strength ω2=5, effective migration rates (light gray), (medium gray), (dark gray) and a difference between the local phenotypic optima DΘ=2. Phenotypic plasticity g1 together with an environmental distance ejei=2 refers to −2<DE<+2.

Based on the phenotypic divergence () and the contribution of phenotypic plasticity, we find the additive genetic divergence (DG=g0jg0i=zj−zi−g1(ej−ei)=DP−DE) at equilibrium as

Therefore, adaptive plasticity reduces the genetic divergence of the populations to the point of no divergence () when plasticity is perfect (g1=1), while maladaptive plasticity increases its extent (Figure 2b). Again, Equation (7) reduces to Equation (7) of Hendry et al. (2001) in the absence of plasticity (g1=0). More generally, our Equation (7) corresponds to Equation (7) in Hendry et al. (2001) when rescaling the environmental divergence DΘ by plasticity DΘ(1−g1) in the latter. Finally, the link between and can simply be done using the following relationship: . Phenotypic and genetic divergences are thus expected to be equivalent only in the absence of phenotypic plasticity.

As species may differ in the ability to respond plastically to novel environmental conditions and vary in the timing of development, we developed models for two alternative life cycles and provide the derivations in the Appendix. In the second life cycle, development (=phenotype expression) and viability selection occur prior to migration (Selection–Migration model), which can apply to species like damselflies or lepidopterans with rather long-lived developmental stages under selection and subsequent short-lived but dispersing adult stages. In the third model, development is followed by migration and then selection (Development–Migration–Selection model) such that individuals after migration do not respond plastically to the new environment. The third life cycle corresponds to species and traits with early phenotype determination (for example, by maternal effects) and rather late selection processes or to situations of a too slow plastic response to novel environmental conditions. While the general trends and patterns coincide across models (Figure 2), some systematic differences exist.

Phenotypic and additive genetic differentiation

The measures of genetic and phenotypic divergence seem to be obvious choices to quantify differences between populations, but they do not capture all aspects of population differentiation. Imagine two populations that exhibit a mean phenotypic divergence of five centimeters in body size, while individuals of the same population vary from each other with a variance of 10 cm. Those two population are less differentiated than the same populations with a within-population variance of only 1 cm. Measures of differentiation (PST, QST, FST and FSTQ) do account for both variance components, they can be directly compared to each other and are widely applied in biology.

Phenotypic differentiation PST represents the fraction of phenotypic variance between populations (Pb) over the total phenotypic variance (the sum of Pb and twice the within-population variance component Pw; Storz, 2002; Leinonen et al., 2006):

In a two-population setting, the phenotypic variance between populations at equilibrium can be derived from as

As we assume that individuals in the two populations differ only in their genetic (g0) and environmental values (ej, ei), while no other factors contribute to phenotypic variance, phenotypic equals additive genetic variance within populations such that Pw=Gw. However, plasticity can increase the phenotypic variance (Pw) above the genetic variance within populations (Gw), as described previously (De Jong, 1990; Gavrilets and Scheiner, 1993). Resulting from variance in the NoR components g0, g1, e and ɛ (Equation (1)) within a population (Gw, Gw1, E and Vɛ), the effect of phenotypic plasticity on phenotypic variance within populations Pw can be computed as

(Gavrilets and Scheiner, 1993). Consequently, phenotypic plasticity in combination with environmental variance within populations (E>0) increases Pw over Gw while we recover Pw=Gw+Vɛ in the absence of plasticity (g1=0).

QST describes population genetic differentiation as the ratio of the additive genetic variance between populations (Gb) over the total additive genetic variance (the sum of Gb and twice the additive genetic variance within populations Gw; Spitze, 1993; Whitlock, 2008).

Following Equation (7), the genetic variance between populations (Gb) at equilibrium can be derived from the additive genetic divergence ().

The within-population additive genetic variance is identical to the parameter Gw used in the analytical models.

Individual-based simulations

In addition to the analytical model, we ran individual-based genetically explicit simulations with a modified version of Nemo2.3 (Guillaume and Rougemont, 2006). Individual-based simulations help uncover the dynamics of the additive genetic variance Gw (a fixed parameter of the analytical model), and of the effective migration (a function of the realized phenotypic divergence of the populations), and allow to study additional aspects of population differentiation that are not addressed by the analytical model (differentiation in allele frequencies FST at neutral markers and FSTQ at quantitative trait loci).

In our simulations, each diploid individual carried n=50 unlinked additive loci. Mutations followed a continuum-of-alleles model with a zero-centered normal distribution of effects N(0, α2=0.1) and a mutation rate of μq=0.0001 (mutational variance: Vm=2·n·μq·α2=0.001). In addition, each individual carried 50 unlinked neutral loci that followed a single-step mutation model with a mutation rate of μn=0.0001 and a maximum of 256 alleles per locus. The neutral loci thus behaved like SSR markers (microsatellites). Phenotypic plasticity was implemented into Nemo as a linear NoR. The phenotype of each individual (zind) was a function of its genetic contribution (intercept g0), the degree of plasticity (slope g1) and the environment e: zind=g0+g1·(e−10). The value 10 was an arbitrary offset value used to set an invariant point where NoR cross (Scheiner, 2013). The slope was set to a fixed value for all individuals, while the intercept was modeled as an additive polygenic quantitative trait subject to mutation, recombination and selection. A given genotype expressed phenotypes in population i and j with difference DE=g1(ej−ei)=g1DΘ, as we set the phenotypic optima and the environmental values to eii=9 and ejj=11, whereby DΘ was 2 in all simulations (Figure 1).

The two populations had a carrying capacity of 1000 diploid individuals each with an even sex ratio. Diecious individuals mated at random without selfing within a population, and female fecundity was Poisson-distributed with a mean of 4. For each offspring produced by a female, a male was randomly chosen. The life cycle of each individual for the Migration–Selection model (MS) was as follows: breeding (when offspring were created)→migration (of the offspring)→phenotype expression (in dependence of the environment)→viability selection (on offspring)→population regulation (when the number of offspring was reduced to the carrying capacity, randomly with regard to the phenotype, and survivors were transferred into the adult life stage for the next generation). The life cycle for the Selection–Migration model (SM) was as follows: breeding→phenotype expression→viability selection→migration→population regulation. The life cycle for the Development–Migration–Selection model (DMS) was as follows: breeding→phenotype expression→migration→viability selection→population regulation.

To match the assumption of stabilizing selection of the quantitative genetics model, Gaussian selection was modeled with parameter ω2 as the width of the selection surface, which relates to the strength of selection as 1/ω2. We ran 840 parameter combinations for each life cycle. We used four different selection strengths (ω2=1, 5, 10 and 50), 10 different census migration rates (mci=mcj=0.0001, 0.0005, 0.001, 0.005, 0.01, 0.05, 0.1, 0.2, 0.3 and 0.4) and 21 levels of phenotypic plasticity (the NoR slope values g1 ranged from −1 to +1, which corresponds to DE values ranging from −2 to +2). The census migration rate corresponded to the rate of individuals migrating between populations, which did not necessarily correspond to the effective rate of individuals who migrated, survived and successfully reproduced (). As the difference between local phenotypic optima DΘ was set to +2 in every scenario, all positive g1 values represented adaptive phenotypic plasticity changing the phenotypic value of migrants toward the new local optimum. All negative g1 values represented maladaptive phenotypic plasticity that pushed phenotypes farther away from the new local optimum. For each parameter combination, 20 replicates were run for 100 000 generations to reach migration–selection equilibrium. After 100 000 generations, the genotype tables of all adult individuals were exported.

Based on Equation (8), PST was calculated for the individual-based simulations by computing Pb and Pw from the genotype tables as follows:

QST was calculated based on the additive genetic variance between populations and within populations (Equation (11)),

The differentiation in allele frequencies at neutral loci FST and at quantitative loci FSTQ (Le Corre and Kremer, 2012) was calculated using the exported genotype tables for neutral and quantitative loci and the package hierfstat (Goudet, 2005) with the Weir-Cockerham FST estimate in R (R Development Core Team, 2008, version 3.2.3). For each parameter combination, the arithmetic mean overall 20 replicates for , , PST, QST, FST and FSTQ was calculated.

To compare the individual-based simulations with the analytical models, we used the simulated values of Gw, Pw and effective migration rates (proportion of successfully reproducing immigrants) together with the parameter values of DΘ, ω2 and g1 to compute the expected values of , , PST and QST from the formulas derived above (Equations (5), (6), (8), (9), (10), (11) and (12)).

Results

In the following sections, we refer exclusively to the results of the Migration–Selection models while treating the particularities of the other two life cycles (Selection–Migration and Development–Migration–Selection) separately.

Effects of phenotypic plasticity on DG and DP

Overall, and as expected, adaptive phenotypic plasticity (g1>0) increased phenotypic divergence DP toward the optimal divergence of DΘ=2 despite gene flow (Figures 2a, c and 3a) and decreased genetic divergence DG (Figures 2b, d and 3c). Maladaptive phenotypic plasticity (g1<0) had the opposite effect, increasing the maladaptive effect of gene flow and leading to genetic divergence larger than the difference in trait optima (Figures 2b, d and 3c) and reduced phenotypic divergence, with DP even opposed to the difference in trait optima (DP<0) at high gene flow (Figures 2a, c and 3a; see also Supplementary Figures S3 and S4). Large maladaptive plasticity further led to the removal of immigrants with near-zero fitness under strong selection (ω2=1), which caused an increase of phenotypic divergence at equilibrium because of a drastic reduction of effective gene flow (Figure 3a; Supplementary Figures S2 and S3).

Figure 3
figure 3

Simulation results with the MS life cycle for phenotypic divergence DP (a), phenotypic differentiation PST (b), additive genetic divergence DG (c) and differentiation in additive genetic effects QST (d) as function of phenotypic plasticity (g1—NoR slope) and census gene flow (; on a decimal logarithmic scale). Positive g1 values indicate adaptive phenotypic plasticity, while negative values indicate maladaptive phenotypic plasticity. The graphs show the results for moderate selection strength (ω2=5) after 100 000 generations. The two populations differ in their local phenotypic optima by two units (DΘ=+2), whereby both populations meet their local phenotypic optima at a phenotypic divergence of DP=+2 (Figure 1).

Relations between phenotypic plasticity, PST and QST

The indices of phenotypic (PST) and genetic (QST) differentiation closely followed the pattern of their respective divergence values; PST was large when DP was large (Equations (8) and (9)) and likewise for QST and DG (Equations (11) and (12)). In consequence, gene flow decreased PST for any level of phenotypic plasticity unless strong adaptive plasticity maintained divergence, or when maladaptive plasticity caused the divergence to cross zero and become negative, opposite to the trait optima (Figures 3a and b; Supplementary Figure S5). In contrast, QST was always decreasing with gene flow and always larger for maladaptive than adaptive plasticity, in agreement with the pattern of genetic divergence (Figures 3c and d; Supplementary Figure S6). Therefore, adaptive plasticity could maintain substantial phenotypic differentiation despite very high gene flow (>10 migrants per generation) and low genetic differentiation. Under maladaptive plasticity, both PST and QST were lower than phenotypic divergence, and genetic divergence would suggest at intermediate values of gene flow, because the within-population variation (Gw, Pw) was maximized under such conditions (Figure 3 and Supplementary Figure S7). High Gw was obtained when genetically distinct individuals (due to high DG) immigrate into patches at comparably high rates (high me) and contribute significant variance in additive genetic effects to a population.

Comparing analytical model with simulation results

Model predictions and simulation results agreed over most of the parameter space explored although discrepancies existed (Figure 4) when measures of population differentiation (DP, PST, DG and QST) predicted by the analytical models were lower than those in the simulations at some parameter combinations. The discrepancies stemmed from the skewed distributions of genotypic values resulting from migration–selection balance within populations (Supplementary Figure S8) while the analytical predictions are valid under the assumption of normally distributed genotypic values, as previously shown (Yeaman and Guillaume, 2009; Débarre et al., 2015). Skewed genotypic distributions emerged when genetically distinct migrants contributed significantly to population divergence. Discrepancies were strongest for maladaptive plasticity with very negative NoR slope (g1<0; Figure 4).

Figure 4
figure 4

The four graphs illustrate the deviations between the individual-based simulations (solid lines) and the analytical predictions (dotted lines) for phenotypic and additive genetic divergence (a: DP; c: DG) and differentiation (b: PST; d: QST) at moderate selection (ω2=5) for three different census migration rates (=0.4, 0.1 and 0.01). Note that the census migration rate may deviate considerably from the effective migration rate depending on phenotypic plasticity (Supplementary Figure S2). We used the effective migration rate to parameterize the MS model.

Effect of plasticity on effective gene flow and genetic differentiation FST and FSTQ

Adaptive phenotypic plasticity increased the effective migration rate toward the census migration rate, by increasing the fitness of migrants toward the fitness of residents, while maladaptive plasticity decreased effective gene flow by increasing the migration load (Supplementary Figures S2a–h). Reduction of effective migration by maladaptive plasticity even permitted phenotypic divergence much closer to the optimal divergence than partially adaptive plasticity (Figures 3a and 4a). By their effect on the effective migration rate, maladaptive plasticity promoted and adaptive plasticity reduced differentiation at both neutral (FST) and quantitative (FSTQ) loci in all three life cycles. The effect of plasticity on FST and FSTQ was strongest under strong selection and almost disappeared under weak selection (Figure 5,Supplementary Figure S9). In general, the largest probability to detect loci under selection, occurring when the FSTQFST difference is largest, was obtained under strong selection and increased with maladaptive plasticity and weaker migration (Figure 6c). Otherwise, maladaptive plasticity caused a weak increase of FSTQFST relative to adaptive plasticity.

Figure 5
figure 5

Simulation results for average allelic differentiation at neutral loci FST (a) and adaptive loci FSTQ (b) for two census migration rates (=0.1, =0.01) at high and moderate selection (ω2=1, ω2=5 and ω2=10) in the MS model.

Figure 6
figure 6

Simulation results for the differences QST-FST (a), PST-FST (b), FSTQ-FST (c) and PST-QST (d) for two different selection strengths (ω2=1, ω2=5) as a function of the level of gene flow () and the degree of phenotypic plasticity (g1). All graphs represent the results of the MS life cycle.

Consequences for the differences QST-FST, PST-FST and FSTQ-FST

For the differences QST-FST and PST-FST, adaptive plasticity generally increased PST-FST, while decreasing QST-FST (Figures 6a and b), in accord with the variation of QST and PST. Maladaptive plasticity showed the reverse overall tendency, with more complex interactions with migration and selection (Figures 6a and b). Adaptive differentiation (QST), however, was substantially larger at the whole-trait level (QST-FST) than at the locus level (FSTQ-FST) when plasticity was maladaptive (compare Figures 6a and c). The differences between QST and FSTQ (and thus QST-FST and FSTQ-FST) derived from the fact that QST is the result of differentiation in allele frequencies at quantitative trait locis (FSTQ) and the covariation of allelic effects within and between populations (Le Corre and Kremer, 2012). The corresponding results for genic variances and covariances are given in the Supplementary Information (Supplementary Figure S10 and S11).

Life cycle effects on population differentiation

SM led to less, or more negative, population divergence (DP, and DG) at equilibrium than MS when g1<1 (Figures 2a and b) because divergence is estimated after migration in SM but after selection has acted on maladapted immigrants in MS. In these two life cycles, phenotype determination happened in the same environment where selection was operating, erasing differences between SM and MS divergence when plasticity was adaptive. In contrast, phenotypic determination (development) and selection were decoupled in the DMS life cycle, which made an adaptive plastic response in the natal patch maladaptive after migration, and vice-versa for maladaptive plasticity, reversing the effect of the type of plasticity on effective migration (Supplementary Figure S2). In consequence, ‘perfect’ plasticity (g1=1) did neither necessarily cause an optimal phenotypic divergence of two (Figure 2c) nor did it always lead to a genetic divergence of zero (Figure 2d). Instead, optimal phenotypic divergence was achieved at a lower degree of plasticity (g1=1−Gw/2+Pw)). The difference between DMS and MS predictions increased with migration and the slope of the NoR (Figure 2), although it remained low.

Discussion

Different populations often experience different environmental conditions, which requires the evolution of different phenotypes to maximize fitness. As a consequence, divergent selection can lead to genetic and phenotypic variation within a species’ range. Gene flow between populations, however, counteracts divergent selection and causes genetic homogenization. In such situations of divergent selection with gene flow, population differentiation may be strongly affected by phenotypic plasticity (Crispo, 2008). By extending a quantitative genetics model (Hendry et al., 2001) and using individual-based simulations, we investigated the effect of phenotypic plasticity on genetic and phenotypic differentiation and divergence between two populations. Population differentiation, either genetic or phenotypic, of traits under selection is often wishfully interpreted as causally linked to adaptive fitness differentiation across space. We show that phenotypic plasticity breaks the correspondence between genetic or phenotypic differentiation and local adaptation. In particular, adaptive phenotypic plasticity promotes phenotypic adaptive differences while canceling local adaptation by selecting for genetic similarity across space and enhancing homogenization by gene flow. A given genotype would here have similar fitness across environments (for example, when doing a transplant experiment) despite phenotypic differences, thus providing evidence of absence of local adaptation and presence of adaptive phenotypic plasticity. As the plastic response becomes more adaptive, genetic differentiation slowly vanishes and gene flow may falsely appear as not constraining local adaptation. Maladaptive phenotypic plasticity has the opposite effect as it increases genetic divergence between populations while not being able to maintain as much phenotypic differentiation as without plasticity. However, maladaptive plasticity can promote phenotypic divergence when it reduces the effective migration rate and thereby allows for high genetic compensation. It can also cause populations to diverge phenotypically in a direction opposite to the environmental or genetic divergence, thus generating countergradient variation.

On the interaction between phenotypic plasticity and gene flow

From our mathematical model, phenotypic divergence between the two populations depends on an interaction between migration and plasticity (the product of and g1, Equations (6), (A3) and (A9)), while genetic divergence is a monotonic function of both parameters (Equation (7), but see Equations (A4) and (A8)). Our individual-based simulations corroborate these predictions but further show how plasticity modulates gene flow. The analytical model considers the parameter, which corresponds to the effective rate of immigration of individuals or gametes from one to the other population. Instead, our simulations show that the effective immigration of individuals into a patch depends not only on the census migration rate but also on the effect of plasticity on selection, as has been described conceptually by Crispo (2008). Under adaptive plasticity, the effective migration rate is close to the rate of census migration because plasticity mitigates the effect of divergent selection by allowing the expression of the adaptive phenotype irrespective of the origin of the individual (Thibert-Plante and Hendry, 2011). In contrast, maladaptive plasticity reduces the effective immigration rate because it leads to the expression of even more maladapted phenotypes in the foreign environment, allowing selection to quickly remove maladapted immigrants and thereby augmenting isolation by adaptation (Nosil et al., 2008; Orsini et al., 2013). As a result, at intermediate census migration, phenotypic divergence increases with maladaptive plasticity, even allowing for larger divergence than with partially adaptive plasticity.

Implications of phenotypic plasticity shaping PST and QST

Although it is generally understood that PST is a bad surrogate for QST in QST-FST comparisons (Falconer and Mackay, 1996; Pujol et al., 2008; Brommer, 2011), understanding the relationship between PST and QST can help us understand how plasticity affects population differentiation in the wild. Our models allow to take a closer look at this important question. In general, our results suggest that plasticity will always induce a difference between PST and QST because of the difference between the phenotypic and genetic population divergences it creates (for example, Figure 6d). Adaptive plasticity should then cause a positive PST−QST difference, while maladaptive plasticity should cause a negative difference, as seen in our simulations (Supplementary Figure S12). Maladaptive plasticity can also lead to shallow genetic gradients (QST~=0) with large phenotypic differentiation (PST>0) when high migration constrains genetic divergence and plasticity is the main contributor to trait divergence (for example, see Figures 3b and d when mc~0.2–0.3; Supplementary Figure S12). Isoclines of PST=QST may thus appear even when g1≠0 under specific parameter values for g1<0 and large migration rates, rendering the interpretation of PSTQST cumbersome. Moreover, these general patterns come with many caveats caused by factors that we did not consider in our models. For instance, a positive difference, interpreted as evidence for adaptive plasticity, may also be reached when plasticity is much higher than optimal plasticity (maladaptive hyperplasticity), a situation that we have not covered in our simulations. Furthermore, a negative PST−QST difference can be reached even in the absence of plasticity simply because the within-population component of phenotypic variance (Pw) is often affected by nonadditive and environmental effects, and it is thus expected to be larger than its genetic homolog (Gw). Both PST and QST are ratios of two variance components that can deviate from each other differently whether at the phenotypic or genetic level and lead to the presence or absence of differences between PST and QST. Therefore, we should be cautious when interpreting such differences and always look at the underlying differences between the phenotypic and genetic variance components from which we can gain better insights into the causes of phenotypic differentiation.

Conclusions derived from life cycle comparisons

The effects of phenotypic plasticity on the ability of a species to adapt to heterogeneous environments is expected to depend on the timing of development relative to migration and selection (De Jong and Behera, 2002; Thibert-Plante and Hendry, 2011; Scheiner et al., 2012). Typically, the adaptive value of plasticity depends on whether development happens in the environment of selection or not. If not, like in the DMS life cycle, the adaptivity of the plastic response of the genotype is reversed, but for the migrating individuals only, making an adaptive plastic response in the home patch maladaptive in the foreign patch, and vice-versa for maladaptive plasticity. Yet, plasticity in DMS increases the adaptive phenotypic divergence when adaptive, and makes it more negative when maladaptive (Figure 2), instead of reducing the adaptive or maladaptive divergence, as might be expected. This result can be understood as follows. In DMS, selection within population becomes stronger under adaptive plasticity because of the larger phenotypic effect of the maladapted immigrants, which results in smaller effective gene flow but also in an increased response to selection. That response actually leads to a genetic compensation within populations, favoring more extreme genotypes, to the point of overshooting the optimum phenotype, and hence the optimum phenotypic divergence too (Figure 2). In contrast, selection becomes weaker under maladaptive plasticity and leads to increased introgression of the maladapted genotypes. Because those genotypes are actually farther away from the optimum trait value and from the population mean, populations then express a larger maladaptive plastic response which steepens the phenotypic cline between the two populations. Finally, the difference between MS and SM is more intuitive because development always takes place in the same patch as selection. MS and SM only differ in the point in time where divergence is measured: after dispersal in SM (a process reducing divergence) and after selection in MS (which increases divergence). Yet, that difference also has biological meaning because in some species development, and selection, may happen at the juvenile stage prior to migration (for example, bird or animal species), or after migration when juveniles develop in the new environment (for example, after seed dispersal).

Other simulation studies similarly emphasized the interaction between life cycle characteristics and adaptive phenotypic plasticity, but mostly ignore the effects of maladaptive plasticity. For example, Scheiner and Holt (2012) and Thibert-Plante and Hendry (2011) showed for divergent selection in structured populations that the evolved levels of adaptive plasticity were lower with a DMS than with a SM life cycle, as adaptive plasticity was not necessarily beneficial for migrants in the selecting environment. Furthermore, adaptive plasticity has been shown to favor the evolution of reproductive barriers between diverging habitats when in combination with evolving assortative mating (Thibert-Plante and Hendry, 2011), adaptive habitat choice (Nonaka et al., 2015) or evolving dispersal rates (Scheiner et al., 2012). These results, in combination with ours, emphasize that phenotypic plasticity and a species’ ecology may have deep consequences for the course of evolution in heterogeneous environments (Pelletier et al., 2009; Ghalambor et al., 2015; Hendry, 2016). Approaches that aim to predict evolutionary dynamics (for example, in response to climate change) therefore should account for species-specific migration rates, trait-specific plastic responses and life cycle characteristics (Guisan and Thuiller, 2005; Schiffers et al., 2013; Cotto et al., 2017).

Maladaptive plasticity, countergradient variation and the extent of genetic evolution

Although maladaptive plasticity is commonly ignored in theoretical studies, ample empirical evidence exists for its consequences on phenotypic variation across environmental gradients–countergradient variation in phenotypic traits. Countergradient variation describes genetic differences opposed to the plastic response and can either be based on hyperplasticity or maladaptive plasticity (Levins, 1969; Conover and Present, 1990; Conover et al., 2009). A typical case is obtained when phenotypic clines are much shallower than genetic clines (Craig and Foote, 2001; Grether, 2005; Jiménez-Ambriz et al., 2007; Deere et al., 2012). It happens in our model with maladaptive plasticity when a critical value of the NoR is reached ; from Equations (6) and (7)) at which DP=0 but DG>0. Many examples have been described in more than 60 plant, fish and insect species (Conover et al., 2009). Recent empirical work further highlighted that maladaptive plasticity can ‘potentiate’ genetic adaptation by accentuating the effects of directional selection on plastic gene expression levels of adaptive loci (Dayan et al., 2015; Ghalambor et al., 2015; Healy and Schulte, 2015). Ghalambor et al. (2015) reached this conclusion by studying the early stage of adaptation of Trinidadian guppies to a new predator-free environment. They found that among the 135 transcripts that showed signs of genetic adaptive change in their level of expression, the majority (89%) exhibited maladaptive plasticity prior to adaptation, while transcripts with adaptive plasticity showed reduced genetic divergence between populations. Our results are in complete agreement with these empirical findings (see also Dayan et al., 2015), although we focused on spatial differences in the environment with gene flow and did not attempt to model variation of plasticity among loci.

What are then the evolutionary consequences of maladaptive plasticity? The fact that plasticity can at the same time ‘potentiate’ adaptation and be maladaptive seems contradictory. It does indeed increase selection on the genotypes within a population and thus facilitates genetic change and divergence. But, being maladaptive, it also decreases the population average fitness by its effects on the phenotypes, to the point of sometimes causing population extinction when selection is least efficient against maladaptive gene flow (for example, with pollen dispersal, as in the SM model) and selection is strong. We can thus expect detrimental effects of maladaptive plasticity on the demography and evolutionary dynamics of a population. Countergradient variation can therefore be a sign of a reduced ability of a species to adapt to heterogeneous environments, particularly in the context of temporally varying environments (for example, climate change). Using Chevin et al. (2010) framework, it can be shown that maladaptive plasticity reduces the maximum tolerable rate of environmental change. It would also reduce a species’ capacity of establishment in new habitats and, in conjunction with its adverse effects on migrants selecting against dispersal, can be expected to generally reduce the capacity of a species to expand its range. However, scenarios of countergradient variation and maladaptive plasticity might also represent situations with high magnitudes of genetic evolution (Dayan et al., 2015; Ghalambor et al., 2015) and thus high potential for evolutionary rescue if the negative demographic consequences are overcome. More work is necessary to delineate the multiple effects of maladaptive plasticity on the evolution of a species’ range.

Limitations

In any case, using our modification of the Hendry et al. (2001) model to infer evolutionary parameters in empirical studies can be cautiously done taking account of a few caveats. Almost all natural systems should deviate from the perfectly symmetric two-patch system modeled. Therefore, it could be interesting to extend the models to more complex scenarios with population-specific variances in environmental conditions, selection strengths or asymmetric gene flow. Also, the average NoR slopes of the two populations might not be parallel when benefits, limitations or costs of phenotypic plasticity differ between populations. Our model is designed for divergent selection when different phenotypes are favored in different environments. However, situations have been reported when the same phenotype is favored in different environments while the different environments cause a different plastic response (Craig and Foote, 2001; Grether, 2005). For example, female Trinidadian guppies (Poecilia reticulata) prefer intermediate ratios between carotenoid and drosopterin pigments in orange spots of males. However, differences in the diet can lead to deviations in male coloration from optimal levels, which led to genetic compensation and constant pigment ratios across environments (Deere et al., 2012). To account for these situations, our model requires a slight modification such that the difference in the environment ejei is not equated with the difference in phenotypic optima θj−θi.

Data archiving

The Nemo source code, Nemo init files and summary of simulation results are available from the Dryad Digital Repository: http://dx.doi.org/10.5061/dryad.418p5.