This pdf contains code for analyzing the data in the Agama_Sites and Agama_Structures csv files. The text can be copied and pasted into R to run all analyses in the manuscript.