R code for the manuscript "Multiple macroevolutionary routes to becoming a biodiversity hotspot " by Javier Igea and Andrew J. Tanentzap.(http://advances.sciencemag.org/content/5/2/eaau8067)
This repository contains the scripts and the raw data required to perform the analyses and generate crude versions of the plots in the manuscript.
analysis.R prepares and performs all the analyses using the scripts stored in ./R/ and the data in ./raw_data/ folder. Some of the input data has to be previously obtained from publicly available databases (see analysis.R and the manuscript for more details).