R code to create figures and perform statistical tests that reused for the main text and the supplemental information of the article. It requires the 'beeLandings', 'simulation_results_1', and 'simulation_results_2' file. Depending on where the files are saved to, the path to the files has to be changed in the R code (be default files are assumed to be located at the desktop).