Code for analyzing groundfish data off newfoundland.
Ensure the working directory for R is set to the overall project folder
Run the scripts in the following order:
- compiling_data.R -> loads data, cleans it, and resaves data as files for other analyses
- population_mean_and_synchrony.R -> generates figure 1
- potential_drivers.R -> generates figure 2
- ordinations_and_relative_composition.R -> generates figure 3
- functional_diversity.R -> generates figure 4, figure S2, and secondarily estimates of FDis used in figure 7; these are saved in the data folder
- clustering_and_plotting_maps.R -> Generates figure 5.
- distance_diversity_analyses.R -> generates figure 6 and figure S4
- overall_community_change.R -> Generates figure 7.
- conversion_factor_analysis.R -> Generates figures S5 and S6.