plot_yield_curve: Yield curve for Shiny

View source: R/14_plot_yield_curve.R

plot_yield_curveR Documentation

Yield curve for Shiny

Description

Yield curve for Shiny

Usage

plot_yield_curve(lh.params, z, MNPL_in, lang = "en")

Arguments

lh.params

a list of life history parameters: S0, S1plus, AgeMat, nages, lambdaMax, K1plus

z

degree of compensation. If this function is used outside the Shiny app, z is calculated from MNPL.

MNPL_in

Maximum Net Productivity Level (MNPL) defined as the greatest net annual increment in population numbers or biomass resulting from additions to the population due to reproduction and/or growth less losses due to natural mortality. If the function is used outside Shiny, it will calculate z from this value. In Shiny, only z is used for productivity.

lang

language selected by the user (character)

Value

a ggplot object showing depletion (1+ population size relative to K) vs. production. In fisheries this is a yield curve; in marine mammal management it shows where the productivity level is highest, i.e., MNPL.

Examples

plot_yield_curve(
  lh.params = list(
    S0 = 0.944, S1plus = 0.99, AgeMat = 17,
    nages = 19, lambdaMax = 1.02, K1plus = 9000
  ),
  MNPL_in = 0.5, z = NA, lang = "en"
)

mcsiple/mmrefpoints documentation built on June 17, 2022, 8:41 p.m.