knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The purpose of the soilfoodwebs
package is to help analyze and simulate soil food webs. The following five functions are the core of the package:
smin
.The package also can complete the following tasks using functions built to work with the communities that are input:
You can install the released version of soilfoodwebs from GitHub with:
# Install devtools if not available: if (!require("devtools")) install.packages("devtools") # Install soilfoodwebs devtools::install_github("robertwbuchkowski/soilfoodwebs") # Install soilfoodwebs with the vignette devtools::install_github("robertwbuchkowski/soilfoodwebs", build_vignettes = T, build_opts = c("--no-resave-data", "--no-manual"))
The core of the soilfoodwebs
package allows you to calculate the fluxes of carbon and nitrogen through a food web at equilibrium using basic properties about each trophic species or node.
For example, here is a plot of the carbon flow through the introductory community after corrections are made to balance nitrogen demand.
library(soilfoodwebs) intro_comm_temp = corrstoich(intro_comm) ana1 <- comana(intro_comm_temp, mkplot = T, whattoplot = "web")
Here are the rates of carbon and nitrogen mineralization predicted for each species.
# Carbon mineralization: ana1$Cmin # Nitrogen mineralization: ana1$Nmin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.