Learn R Programming

ypr (version 0.4.0)

ypr_plot_yield.ypr_population: Plot Yield by Exploitation/Capture Probability

Description

Plots the 'Yield', 'Age', 'Length', 'Weight', 'Effort', or 'YPUE' by the annual interval exploitation/capture probability.

Usage

# S3 method for ypr_population
ypr_plot_yield(
  object,
  y = "Yield",
  pi = seq(0, 1, length.out = 100),
  Ly = 0,
  harvest = TRUE,
  biomass = FALSE,
  u = harvest,
  plot_values = TRUE,
  ...
)

Arguments

object

The populations or populations.

y

A string of the term on the y-axis.

pi

A vector of probabilities of capture to calculate the yield for.

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.

u

A flag specifying whether to plot the exploitation rate as opposed to the capture rate.

plot_values

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

...

Unused parameters.

Value

A ggplot2 object.

See Also

ypr_population() and ypr_yields()

Examples

Run this code
# NOT RUN {
ypr_plot_yield(ypr_population())
# }

Run the code above in your browser using DataLab