Analysis of how plant functional group removal affects ecosystem multifunctionality across climate gradients in mountain ecosystems (FunCaB/FUNDER experiment, Western Norway).
This repo downloads, processes, and analyses data from a macroecological experiment that replicates plant functional group removals (graminoids, forbs, bryophytes) across factorial temperature and precipitation gradients (Vestland Climate Grid). It tests whether biodiversity loss reduces multifunctionality and whether these effects depend on climate context. Ecosystem functions include biomass, decomposition, carbon and nutrient stocks/fluxes, and biodiversity of plants, soil fauna, and microbes.
The project uses the targets R package for a reproducible pipeline:
- Download (
R/download_plan.R) — Fetch data from the data repository (biomass, community composition, bryophytes, mesofauna, nematodes, etc.). - Transform (
R/tranformation_plan.R) — Curate and standardise data; create site × treatment metadata. - Multifunctionality (
R/multifunctionality_plan.R) — Merge functions, standardise to 0–1, compute average multifunctionality. - Analysis (
R/analysis_plan.R) — Linear mixed-effects models for effects of functional group richness, treatment identity, temperature, and precipitation. - Figures (
R/figure_plan.R) — Outputs for the main results.
Pipeline entry point: _targets.R. Run the pipeline with run.R or targets::tar_make().
results.qmd— Main results document (figures and model tables): effects of functional group number and identity on single functions and average multifunctionality, and how these vary with climate.results_new.qmd— Updated results (PCA, heatmaps, model tables).SI.qmd— Supplementary information.
-
Run the pipeline, then render into
docs/(output must be basename only; directory via--output-dir):quarto render results_new.qmd --output-dir docs --output index.html
If you get
docs/results_new.htmlinstead, runmv docs/results_new.html docs/index.html. -
Commit
docs/index.htmlanddocs/.nojekyll, push tomain. -
GitHub Pages: Settings → Pages → deploy from branch main, folder /docs.
Site URL:https://audhalbritter.github.io/Funder_multifunctionality/Or set Pages source to GitHub Actions and run the workflow Publish results to GitHub Pages (after
docs/index.htmlis committed).
See docs/README.md for details.
- R project; dependencies managed via renv (
renv::restore()). - Key packages:
tidyverse,targets,dataDownloader,dataDocumentation,lme4,lmerTest,vegan,patchwork,gt, etc. (see_targets.Randlibraries.R). - GitHub package:
dataDocumentationis from GitHub. Install it withrenv::install("audhalbritter/dataDocumentation")so renv records the source; thenrenv::snapshot()will include it in the lockfile.