plotreduction: plotreduction generates a summary plot of a stock reduction

View source: R/asmreduct.r

plotreductionR Documentation

plotreduction generates a summary plot of a stock reduction

Description

plotreduction generates a summary plot of the output from an age-structured stock reduction produced by the asmreduction function, which in turn relies on the dynamics function from the aspm within the datalowSA package.

Usage

plotreduction(inreduct, defineplot = TRUE, refpts = c(0.2, 0.48))

Arguments

inreduct

the list object generates by asmreduction

defineplot

boolean which determines whether a par statement is made or not. default = TRUE.

refpts

a vector of two defining the limit and target reference points; defaults to 0.2 and 0.48

Value

outputs the stats from any projection period. also produces a 3,1 plot of FullH, spawning biomass, and depletion for the input stock reduction

Examples

## Not run: 
  data(orhdat1)
  fish <- orhdat1$fish # 19 years of data
  glb <- orhdat1$glb
  props <- orhdat1$props
  inR0 <- seq(12.0,14.2,0.02)
  limitH <- c(0.25,0.5)
  glb$M <- 0.032
  glb$steep <- 0.6
  reduct <- asmreduction(inR0,fish,glb,props,limitH=limitH)
  plotprep(width=6,height=5.5)
  plotreduction(reduct)

## End(Not run)     # inreduct=reduct; defineplot=TRUE

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