plotceASPM: plotceASPM plots just the fit of the ASPM model to the CPUE...

View source: R/aspm.r

plotceASPMR Documentation

plotceASPM plots just the fit of the ASPM model to the CPUE data

Description

plotceASPM plots just the fit of the ASPM model to the CPUE data and provides a more detailed visual than plotASPM. It has the option of including lognormal confidence intervals around the predcted CPUE.

Usage

plotceASPM(infish, CI = NA, defineplot = TRUE)

Arguments

infish

output from the dynamics function using the optimum parameters

CI

the output matrix from getLNCI function. Needs to have the lower CI in column 1 and the upper CI in the third column.

defineplot

defaults to TRUE, determines whether to set up an new graphics window.

Value

returns nothing but does plot a graph

Examples

## Not run: 
data(dataspm)
fish <- dataspm$fish
glb <- dataspm$glb
props <- dataspm$props
pars <- c(14,0.3)
aspmLL(pars,fish,glb,props)      # should be -2.277029
bestspm <- fitASPM(pars,infish=fish,inglb=glb,inprops=props)
fishery <- dynamics(bestspm$par,fish,glb,props)
ceCI <- getLNCI(fishery[,"PredCE"],bestspm$par[2])
plotceASPM(fishery,CI=ceCI)

## End(Not run)

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