plotFishSpp: Plot PAWMAP Fish Species Composition Data.

View source: R/plotFishSppComp.r

plotFishSppR Documentation

Plot PAWMAP Fish Species Composition Data.

Description

Plot PAWMAP Fish Species Composition Data.

Usage

plotFishSpp(
  dfm,
  speciesIn = "common_name",
  sppLook = "Common_Name",
  by = "row",
  countFields = c("totNum", "numSurv"),
  limitLength = TRUE,
  ...
)

Arguments

dfm

The data frame containing fish counts

speciesIn

The field in dfm that identifies species

sppLook

Look up species traits by: "Common_Name" (default) or "Species_Name"

by

Are the data formatted one row per individual ('row'), or counts per species ('counts')?

countFields

Only used if by='count'. A vector of length 2 indicating the fields for total number of each species captured first, and the number of surveys on which they were captured second.

limitLength

Should the number of species plotted be limited to the top 25? (to prevent an overcrowded plot)

...

Additional arguments passed to tallyFishSpp

Value

A tornado plot of fish species presence (number of surveys on which species was captured), and abundance (total number of individuals captured)


PDXChris/pmtools documentation built on March 26, 2024, 8:13 a.m.