Generate plots that inform on process error in the SAM assessment model

procerr.plot(stck, weight = "stock.wt", type = "n", rel = F)

Arguments

stck

An FLStock object

weight

Option to choose between stock.wt and catch.wt

type

Option to choose between observation error related to N-at-age ('n'), mortality ('mort') or total biomass ('tsb')

rel

Logical. Express error relative or absolute

Value

A picture is returned

Author

Niels T. HIntzen (based on code from Einar Hjorleifsson)

Examples

library(FLSAM)

data(NSH)

procerr.plot(NSH,type="n")

procerr.plot(NSH,type="n",rel=TRUE)

procerr.plot(NSH,type="mort")

procerr.plot(NSH,type="mort",rel=TRUE)

procerr.plot(NSH,type="tsb",weight="catch.wt",rel=FALSE)

procerr.plot(NSH,type="tsb",weight="catch.wt",rel=TRUE)

procerr.plot(NSH,type="tsb",weight="stock.wt",rel=FALSE)

procerr.plot(NSH,type="tsb",weight="stock.wt",rel=TRUE)