This repository contains code for the manuscript Fragmentation mitigates biodiversity loss immediately after habitat destruction
- Conduct parameter exploration of neutral model using python_code/neutral_mod-amarel15june2021.py and r_scripts/look at coms2.R.
- Run simulations to generate final communities for analysis using python_code/neutral_mod-amarel15june2021.py.
- Find the most and least fragmented landscapes in the northeastern USA using r_scripts/measure_frag.R
- Run simulation of forest loss using r_scripts/simulate forest loss.R.
- Summarize results and make figures for the manuscript using results_summary.R, r_scripts/plot_edge_area.R, and r_scripts/methods figure.R.
File Name | Description |
---|---|
forest_bees.csv | List of forest specialist bee species in northeastern USA; from Smith et al 2021 |
forestbee1718_spec.csv | Data file of all bee specimen records from forest sites in Smith et al 2021 |
ForestBeeSiteInfo_final.csv | Data file of site information for forest sites from Smith et al 2021 |
hab_maps03dec2021.rds | R list of habitat maps used in the simulations. These were the highest- and lowest-edge landscapes from NLCD data. Each data frame in the list contains the x,y cooordinates of forest and matrix habitat in the landscape |
loss_simulation_n100_output.rds | R list of data frames with output from the forest loss simulations. Each data frame corresponds to a different landscape size, and each row contains the number of species in the community before and after deforestation |
lu_info03dec2021.rds | R list of data frames with forest landscape data (e.g., percent forest area, edge density) for landscapes we sampled in the norhteastern U.S. Each data frame in the list contains data for a different landscape size |
Description | Location |
---|---|
Landcover data from northeastern USA | can be found here |
Raw community data from the neutral model | can be found here |