doconstC: doconstC calculates and plots projections under a constant...

View source: R/cMSY_funs.R

doconstCR Documentation

doconstC calculates and plots projections under a constant catch

Description

doconstC merely combines the functions gettraject, doproject, makedeplet, and plotconstC to simplify the process of conducting projections using constant catches. Compare this with separately using the functions gettraject, doproject, makedeplet, and plotconstC in sequence, which is all that dococnstC does.

Usage

doconstC(
  inR1,
  projn = 5,
  constCatch = 100,
  lastyear = 2017,
  limit = 0.2,
  target = 0.48,
  console = TRUE,
  intensity = NA
)

Arguments

inR1

the R1 object that is within the list generated by run_cMSY.

projn

the number of years of projection with a default of 5

constCatch

the constant catch to be applied to each successful trajectory

lastyear

the final year of the known catches and biomass trajectories

limit

the depletion level acting as the limit referencepoint

target

the depletion level used as a biomass target for the species.

console

logical, should results be printed to the console. Default =TRUE

intensity

the value that defines the density of trajectories required to give rise to full colour; default = NA which implies grey

Value

a matrix of the all years with the proportion < 20 proportion > 48 the proportion of trajectories that were increasing relative to the lastyear of data.

Examples

## Not run: 
data(invert)
fish <- invert$fish
glb <- invert$glb
reps <- 10000  # one would run at least 20000, preferably more
answer <- run_cMSY(fish,glb,n=reps,sigpR=1e-6)
out <- doconstC(answer$R1,projn=5,constCatch=150,lastyear=2017,
                limit=0.2,target=0.4)
str(out)

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.