srSim: Dynamic plots to explore typical fisheries stock-recruitment...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/srSim.R

Description

Plots modeled number of recruits versus stock size for common parameterizations of the Beverton-Holt and Rickerstock-recruit models. Slider bars are used to dynamically alter the parameters of each model.

Usage

1
srSim(type = c("BevertonHolt", "Ricker"), param = 1, max.S = 500, max.R = 1000)

Arguments

type

A string that indicates the type of the stock-recruitment model. Must be one of "BevertonHolt", "Ricker", "Shepherd", or "SailaLorda".

param

A numeric that indicates the parameterization of the stock-recruitment model type.

max.S

A single numeric that indicates the maximum spawning stock to use for scaling the x-axis. Ignored if S is not NULL.

max.R

A single numeric that indicates the maximum recruitment to use for scaling the y-axis. Ignored if S is not NULL.

Details

This function can be used to explore the dynamics of stock-recruitment models for various parameter choices. In these instances of model exploration the S= and R= arguments should be (left) set at NULL.

The type= argument is used to choose either the "BevertonHolt" or "Ricker" stock-recruitment models. Common parameterizations of the "BevertonHolt" and "Ricker" models can be chosen with param=. Four paramaterizations of the Beverton-Holt model and three parameterizations of the Ricker model are allowed. See srFunShow described in stockRecruitment to see equations for each model.

Value

None. However a dynamic graphic connected to slider bar controls of the ‘a’, ‘b’, or ‘Rp’ parameters specific to the chosen stock-recruit model.

Author(s)

Derek H. Ogle, dogle@northland.edu

See Also

srStartsDP and srFunShow described in stockRecruitment.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## ONLY RUN IN INTERACTIVE MODE
if (interactive()) {
# Beverton-Holt models
srSim()
srSim(param=2)
srSim(param=3)
srSim(param=4)

# Ricker models
srSim(type="Ricker")
srSim(type="Ricker",param=2)
srSim(type="Ricker",param=3)
}  ## END INTERACTIVE MODE

droglenc/FSAsim documentation built on Feb. 15, 2020, 11:20 p.m.