screenFoodWeb: Function that creates a biplot of a food web with stable...

screenFoodWebR Documentation

Function that creates a biplot of a food web with stable isotope values (d13C and d15N)

Description

Function that creates a biplot of a food web with stable isotope values (d13C and d15N)

Usage

screenFoodWeb(
  df = NULL,
  grouping = c("Species", "FG"),
  printSummary = FALSE,
  ...
)

Arguments

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.

Value

a ggplot2 object with the biplot of the data frame. Also prints the summary of the data frame as needed.

Examples

## Not run: 
data("Bilagay")
subset_CHI <- Bilagay[Bilagay[,"Location"] %in% "CHI",]
screenFoodWeb(subset_CHI, grouping = c("Spp", "FG"))

## End(Not run)

tRophicPosition documentation built on Dec. 28, 2022, 2:27 a.m.