View source: R/methods_plots.R
procerr.plot | R Documentation |
Generate plots that inform on process error in the SAM assessment model
procerr.plot(stck, weight = "stock.wt", type = "n", rel = F)
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 |
A picture is returned
Niels T. HIntzen (based on code from Einar Hjorleifsson)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.