Cobweb diagram for xₙ₊₁ = r·xₙ(1−xₙ). Drag r to watch period-doubling cascade to chaos. Click to set initial condition x₀.