Fig. 3: Effect of habitat assortativity rΘ and migration m on the local adaptive trait distribution \({\overline{n}}^{{{{{{{{\bf{I}}}}}}}}}\) and on the adaptive differentiation level QST,s under the mean field, deterministic approximation Eq. (5).

a Effect of m and rΘ on \({\overline{n}}^{{{{{{{{\bf{I}}}}}}}}}\). Migration induces the apparition of maladaptive individuals (centred around θII = 0.5), which destabilise local adaptation by displacing the mean value of the well-adapted individuals (centred around θI = − 0.5). Together with the decrease in local adaptation, migration causes a displacement of the mean value of the local trait distribution (represented by the vertical dashed lines), which decreases local population size and adaptive differentiation QST,s. b Similar data for higher rΘ. Increasing rΘ increases population size and QST,s. c Effect of rΘ on QST,s. The red line indicates the critical migration threshold m⋆ predicted by Eq. (7); QST,s vanishes when m > m⋆.