knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
ypr
is an R package that implements equilibrium-based yield per recruit methods.
Yield per recruit methods can used to estimate the optimal yield [@walters_fisheries_2004] of a fish population with one or more ecotypes.
The yield can be based on the number of fish caught (or harvested) or biomass for all fish or just large (trophy) individuals.
The key life history parameters are
k
) and mean maximum length (Linf
) from the Von Bertalanffy growth curveLs
)Lv
)n
)Rk
)and in the case of ecotypes
RPR
)The calculations do not account for stochasticity, predator-prey dynamics, angler responses or density-dependent growth.
To install the latest release from CRAN
install.packages("ypr")
To install the developmental version from GitHub
# install.packages("remotes") remotes::install_github("poissonconsulting/ypr")
library(ypr) population <- ypr_population(Rk = 5, Ls = 50, Rmax = 100, rho = 0.6) ypr_plot_schedule(population, x = "Length", y = "Spawning") ypr_tabulate_schedule(population)
ypr_plot_fish(population, color = "white") ypr_tabulate_fish(population)
ypr_plot_sr(population) ypr_tabulate_sr(population)
ypr_tabulate_yield(population) ypr_plot_yield(population)
For more information see the Get Started vignette.
To interactively explore the effects of altering individual parameters on the schedule, stock-recruitment and yield see the ypr shiny app.
Development of ypr was partially supported by the Habitat Conservation Trust Foundation and the Ministry of Forests, Lands and Natural Resource Operations.
The hex was designed by The Forest.
Please report any issues.
Pull requests are always welcome.
Please note that the ypr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.