bins_assignment_plot: Demonstration of how binned body-mass values get assigned to...

View source: R/length_weight.R

bins_assignment_plotR Documentation

Demonstration of how binned body-mass values get assigned to logarithmic size-class bins (Figure 3 of MEPS)

Description

Demonstration of how binned body-mass values get assigned to logarithmic size-class bins (Figure 3 of MEPS)

Usage

bins_assignment_plot(
  num2 = 11,
  lenBins = seq(10, 40, by = 5),
  LWa = c(0.001, 0.0255),
  LWb = c(3.4362, 2.7643),
  col1 = c("red", "pink"),
  col2 = c("blue", "lightblue"),
  thick = 7,
  xaxs = "i",
  yaxs = "i",
  mgp = c(2, 0.5, 0),
  lend = "butt"
)

Arguments

num2

Number of log2 bin breaks

lenBins

Example length bin breaks to use for the example body-mass bins

LWa

Vector of two alpha values (see MEPS equation 1), for species 1 then species 2, though only species 2 is used, just keeping consistency with length_weight_plot()

LWb

Vector of two beta values (see MEPS equation 1), for species 1 then species 2, though only species 2 is used, just keeping consistency with length_weight_plot()

col1

Vector of two colours to alternate for species 1

col2

Vector of two colours to alternate for species 2

thick

Thickness of bin segments

xaxs, yaxs, mgp, lend

standard options for par(), defaults are for Figure 3 of MEPS

Value

Plots figure, default is Figure 3 of MEPS

Author(s)

Andrew Edwards


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