(a) Positive niche construction, independent renewal, and no external selection (Rt = λ1Rt−1 + λ2pt + λ3, γ = 0, α1 = β1 = α2 = β2 = 1, r = 1/2, n = 1). Here, the only selection is that generated by the resource. The arrows represent the trajectories of a population, the heavy line represents stable equilibria, and the dashed line represents unstable equilibria. The direction of selection generated by the resource switches at R = 1/2. In b–d, with independent renewal and external selection favouring allele A, niche construction generates selection that may oppose the external selection, taking populations to alternative equilibria and generating polymorphisms. b and c show positive niche construction (Rt = λ1Rt−1 + λ2pt + λ3, γ = 0), with weak selection (α1 = β1 = 1, α2 = 1.01, β2 = 0.99, r = 1/2) (b), and strong selection (α1 = β1 = 1, α2 = 1.1, β2 = 0.9, r = 1/2) (c). d shows negative niche construction, independent renewal, and external selection favoring allele A (Rt = λ1Rt−1(1 − γpt) + λ3, λ2 = 0, α1 = β1 = 1, α2 = 1.1, β2 = 0.9, r = 1/2). When selection favors allele A and ɛ is negative, positive niche construction (γ = 0) (e) and negative niche construction (λ2 = 0) (f) generate polymorphisms (α1 = β1 = 1, α2 = 1.1, β2 = 0.9, r = 1/2).