Last updated: 2020-06-23

Checks: 1 1

Knit directory: genes-to-foodweb-stability/

This reproducible R Markdown analysis was created with workflowr (version 1.6.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    code/.Rhistory

Unstaged changes:
    Modified:   analysis/about.Rmd
    Modified:   analysis/license.Rmd
    Deleted:    figures/conceptual.key
    Deleted:    figures/conceptual.pdf
    Deleted:    figures/initial-foodweb-structural-stability-v5-gimp.png
    Deleted:    figures/initial-foodweb-structural-stability-v5-gimp.xcf
    Deleted:    figures/rich-geno-critical-transitions-images-v2.key
    Deleted:    figures/rich-geno-critical-transitions-images-v2.pdf
    Deleted:    figures/rich-state-transitions-images-v3.key
    Deleted:    figures/rich-state-transitions-images-v3.pdf
    Deleted:    figures/rich-structural-stability-images-v2.key
    Deleted:    figures/rich-structural-stability-images-v2.pdf

Staged changes:
    Modified:   README.md
    New:        analysis/critical-transitions.Rmd
    Modified:   analysis/index.Rmd
    Modified:   analysis/license.Rmd
    New:        analysis/plant-growth-no-insects.Rmd
    New:        analysis/structural-stability.Rmd
    Modified:   code/README.md
    New:        code/glm-ftest.R
    New:        code/plot-feasibility-domain.R
    New:        code/prep-time-series.R
    New:        code/simulate-community-dynamics.R
    New:        code/temperature-structural-stability-fig.R
    New:        data/ExperimentPlantBiomass.csv
    New:        data/PreExperimentNoInsectsPlantBiomass.csv
    Modified:   data/README.md
    New:        data/arabidopsis_clean_df.csv
    New:        figures/conceptual.key
    New:        figures/conceptual.pdf
    New:        figures/initial-foodweb-structural-stability-v2.png
    New:        figures/initial-foodweb-structural-stability-v5-gimp.png
    New:        figures/initial-foodweb-structural-stability-v5-gimp.xcf
    New:        figures/rich-geno-critical-transition-v4.pdf
    New:        figures/rich-geno-critical-transitions-images-v2.key
    New:        figures/rich-geno-critical-transitions-images-v2.pdf
    New:        figures/rich-state-transitions-images-v3.key
    New:        figures/rich-state-transitions-images-v3.pdf
    New:        figures/rich-structural-stability-R-v2.pdf
    New:        figures/rich-structural-stability-images-v2.key
    New:        figures/rich-structural-stability-images-v2.pdf
    Modified:   output/README.md
    New:        output/critical-transitions.RData
    New:        output/full.mv.norm.brm.rds
    New:        output/geno.rich_model.brm.rds
    New:        output/plant-growth-no-insects.RData
    New:        output/reduced.1.brm.rds
    New:        output/reduced.2.brm.rds
    New:        output/reduced.3.brm.rds
    New:        output/reduced.4.brm.rds
    New:        output/reduced.5.brm.rds
    New:        output/reduced.6.brm.rds
    New:        output/reduced.7.brm.rds
    New:        output/reduced.8.brm.rds
    New:        output/structural-stability.RData
    New:        output/timeseries_df.csv

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the R Markdown and HTML files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view them.

File Version Author Date Message
html 28c2a9f mabarbour 2020-02-05 Build site.
Rmd 27ad8e2 mabarbour 2020-02-05 Start workflowr project.

Abstract: Genetic diversity provides the raw material for species to adapt and persist in the face of climate change. Yet, the extent to which these genetic effects scale at the level of ecological communities remains unclear. Here we experimentally test the effect of plant genetic diversity on the persistence of an insect food web under a current and future warming scenario. We found that plant genetic diversity increased food-web persistence by increasing the intrinsic growth rates of species across multiple trophic levels. This positive effect was robust to a 3\(^{\circ}\)C warming scenario and resulted from allelic variation at two genes that control the biosynthesis of chemical defenses. Our results suggest that the ongoing loss of genetic diversity may undermine the persistence and functioning of ecosystems in a changing world.

One-sentence summary: We show that the loss of genetic diversity accelerates the extinction of interconnected species from an experimental food web.

Please see the main text and supplementary materials of the manuscript for details.