jbplot_retro: jbplot_retro() to plot retrospective pattern

jbplot_retroR Documentation

jbplot_retro() to plot retrospective pattern

Description

Plots retrospective pattern of B, F, BBmsy, FFmsy, BB0 and SP #'

Usage

jbplot_retro(
  hc,
  type = c("B", "F", "BBmsy", "FFmsy", "procB", "SP"),
  forecast = FALSE,
  ylabs = NULL,
  add = F,
  output.dir = getwd(),
  as.png = FALSE,
  single.plots = add,
  width = NULL,
  height = NULL,
  xlim = NULL,
  cols = NULL,
  legend.loc = "topright",
  verbose = TRUE
)

Arguments

hc

output list from hindast_jabba()

type

single plot option c("B","F","BBmsy","FFmsy","BB0","SP")

forecast

includes retrospective forecasting if TRUE

ylabs

yaxis labels for quants

add

add to multi plot if TRUE

output.dir

directory to save plots

as.png

save as png file of TRUE

single.plots

if TRUE plot invidual fits else make multiplot

width

plot width

height

plot hight

xlim

allows to "zoom-in" requires speficiation Xlim=c(first.yr,last.yr)

cols

option to add colour palette

legend.loc

location of legend

verbose

if FALSE be silent

Value

Mohn's rho statistic for several quantaties

Examples

data(iccat)
bet= iccat$bet
jb = build_jabba(catch=bet$catch,cpue=bet$cpue,se=bet$se,assessment="BET",scenario = "Ref",model.type = "Pella",igamma = c(0.001,0.001),verbose=FALSE)
fit = fit_jabba(jb,quickmcmc=TRUE,verbose=FALSE)
hc = hindcast_jabba(jbinput=jb,fit=fit,peels=1:3)
jbplot_retro(hc)
jbplot_retro(hc,forecast=TRUE) # with retro forecasting

jabbamodel/JABBA documentation built on Nov. 2, 2024, 12:50 p.m.