R Script used to construct typology of cocoa plots using multiple factor analysis (MFA) and hierarchical clustering, as described in
Hawkins, J., Gallagher, E.J., van der Haar, S., Sevor, K.E., Weng, X., Rufino, M.C., & Schoneveld, G.C. (2024). Low emissions and profitable cocoa through moderate shade agroforestry: insights from Ghana. Agriculture, Ecosystems & Environment 367, 108961. https://doi.org/10.1016/j.agee.2024.108961