Data and code required to reproduce figures and stats quoted in Renier C, Addoah T, Guye V, Garrett R, Van den Broeck G, zu Ermgassen E K H J, Meyfroidt P, 2025. Direct and indirect deforestation for cocoa in the tropical moist forests of Ghana, Envir. Res. Food Systems.