Learn R Programming

ypr (version 0.4.0)

ypr_plot_sr: Plot Stock-Recruitment Curve

Description

Plot Stock-Recruitment Curve

Usage

ypr_plot_sr(
  population,
  Ly = 0,
  harvest = TRUE,
  biomass = FALSE,
  plot_values = TRUE
)

Arguments

population

An object of class ypr_population().

Ly

The minimum length (trophy) fish to consider when calculating the yield (cm).

harvest

A flag specifying whether to calculate the yield for harvested fish or captures.

biomass

A flag specifying whether to calculate the yield in terms of the biomass versus number of individuals.

plot_values

A flag specifying whether to plot the actual and optimal values.

Value

A ggplot2 object.

See Also

ypr_population() and ypr_sr()

Examples

Run this code
# NOT RUN {
ypr_plot_sr(ypr_population(Rk = 10))
ypr_plot_sr(ypr_population(Rk = 10, BH = 0L))
# }

Run the code above in your browser using DataLab