This function allows you to plot an overview of the model results in function of the total length of fish
Usage
plot_cnp(mod, y, x = "tl", probs = c(0.8, 0.95))
Examples
library(fishflux)
mod <- cnp_model_mcmc(TL = 5:15, param = list(
Qc_m = 40, Qn_m = 10, Qp_m = 4, Dn_sd = 0.05))
#> Warning: all scheduled cores encountered errors in user code
#> Error in x[[2]]: subscript out of bounds
plot_cnp(mod = mod, y = c("Fp", "Gp", "Wp", "Ip"),
x = "tl", probs = c(0.5, 0.8))
#> Error: object 'mod' not found
plot_cnp(mod = mod, y = "Fp", x = "tl",
probs = c(0.5, 0.8, 0.95))
#> Error: object 'mod' not found