Description Usage Arguments Details Value Examples
cohortSim
simulates a single cohort
1 | cohortSim(params, t_incr = 1)
|
params |
List of parameters to use in function |
t_incr |
Value to use a time increment (in years). Defaults to 1. |
params
list should contain the following parameters:
species
Species name
growthFun
Name of growth function (e.g. "growth_VB" is the von
Bertalanffy growth function)
amax
Maximum age
LWa
Length-weight relationship parameter a (weight~a*length^b)
LWb
Length-weight relationship parameter b (weight~a*length^b)
M
Natural mortality
F
Fishing mortality
N0
Number of individuals at time 0
matFun
Name of maturity function (e.g. "pmat_w" is a logistic
function that includes width, w, of quantiles)
selectFun
Function to use for gear selection. Determines lengths
vulnerable to fishing mortality (e.g. "gillnet" and "knife_edge" functions).
...
Other parameters for growth, maturity, and selectivity functions.
A list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(tilapia)
res <- cohortSim(tilapia, t_incr=.1)
plot(pcap ~ Lt, res, t="l")
plot(Lt ~ t, res, t="l")
plot(Wt ~ t, res, t="l")
plot(Bt ~ t, res, t="l")
lines(SBt ~ t, res, col=2)
plot(Bt ~ Lt, res, t="l")
lines(SBt ~ Lt, res, col=2)
plot(Yt ~ t, res, t="l")
plot(Nt ~ t, res, t="l", log="y")
lines(Nt.noF ~ t, res, col=2, lty=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.