View source: R/14_plot_yield_curve.R
plot_yield_curve | R Documentation |
Yield curve for Shiny
plot_yield_curve(lh.params, z, MNPL_in, lang = "en")
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) |
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.
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" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.