species_bins_plots: Plot the species-specific bins for all species, as in Figures...

View source: R/plotting.R

species_bins_plotsR Documentation

Plot the species-specific bins for all species, as in Figures 6, S.1, S.2 and S.3

Description

Wrangles the data and then plots the Figures 6, S.1, S.2 and S.3 showing how the species-specific length-weight coefficients yield different bins.

Usage

species_bins_plots(
  dataBin_vals = dataBin,
  postscript = FALSE,
  specCodeHighlight = c(127205, 154675)
)

Arguments

dataBin_vals

dataframe in the same format as the saved dataset dataBin – see ?dataBin for structure

postscript

If TRUE then save four separate postscript figures, else just plot the four figures to the active device

specCodeHighlight

Species to highlight in red in Figure 6 (species 127251 for Figure A.4 is done within the function).

Value

list containing:

  • maxWidth: maximum width of any bin

  • specNameMaxWidth: species name corresponding to maxWidth

  • maxRatio: maximum ratio of a body-mass bin to it's minimum, i.e. maximum value of (wmax - wmin)/wmin

  • specNameMaxRatio: species name corresponding to specNameMaxRatio

Author(s)

Andrew Edwards


andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.