Here we outline the code linked to our manuscript Demographic buffering in natural populations: A multi-level perspective. Each script is linked to a figure (e.g. Figure 1.R) which is completely reproducible. This repository has also been published on Zenodo: