screenFoodWeb | R Documentation |
Function that creates a biplot of a food web with stable isotope values (d13C and d15N)
screenFoodWeb( df = NULL, grouping = c("Species", "FG"), printSummary = FALSE, ... )
df |
a data frame that contains the isotope values. By defaults, the data frame needs to have the following columns: d13C, d15N, Species and FG. Species stands for the scientific name (or common name), and FG stands for the functional group for each species. |
grouping |
a vector with the name of the columns (variables) that will be used to summarize, and plot the data frame. |
printSummary |
a logical value to indicate whether the summary is printed |
... |
optional arguments that are passed to the function for later use. |
a ggplot2 object with the biplot of the data frame. Also prints the summary of the data frame as needed.
## Not run: data("Bilagay") subset_CHI <- Bilagay[Bilagay[,"Location"] %in% "CHI",] screenFoodWeb(subset_CHI, grouping = c("Spp", "FG")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.