Correction to: Nature https://doi.org/10.1038/s41586-022-04687-0 Published online 25 May 2022

In the version of the article initially published, in the key to Fig. 3b the red and orange lines were switched and have now been amended so that red represents “RCP8.5” and orange “RCP6.0” in the HTML and PDF versions of the article.