plotstandFY: plotstandFY - optimum model & Geometric mean for fishing...

Description Usage Arguments Value Examples

View source: R/cpueplots.R

Description

plotstandFY - optimum model & Geometric mean for fishing years. Standardizations from standLM and standLnCE can be used. Has options that allow for log-normls P period's parameter estimate. Also can rescale the graph to have an average the same as the geometric mean average of the original time series of data.

Usage

1
2
3
4
5
6
7
8
plotstandFY(
  stnd,
  yrtick = 4,
  bars = FALSE,
  P = 95,
  lstyr = NA,
  alterpar = TRUE
)

Arguments

stnd

is the list output from standLM

yrtick

defaults to 4 denoting the gap between years on the x-axis

bars

is a logical T or F determining whether to put confidence bounds around each estimate; defaults to FALSE

P

is the percentile used for the log-normal confidence bounds, if they are plotted; defaults to 95.

lstyr

is last years time-series of the optimal model. This can be plotted on top of the current year's optimum to chack on repeatability.

alterpar

is a logical that, if TRUE, which is the default state, it will prevent this function from altering the par settings. If FALSE this will allow for additions to be made to the resulting plot.

Value

a plot of the model with the smallest AIC (solid line) and the geometric mean (model 1, always = LnCE ~ Year, the dashed line). 'Year' could be some other time step.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
data(sps)
splabel <- "Species2"
labelM <- c("Year","Vessel","Month")
sps1 <- makecategorical(labelM,sps)
mods <- makemodels(labelM)
out <- standLM(mods,sps1,splabel)
plotstandFY(out, bars=TRUE, P=90)
plotstandFY(out)

## End(Not run)

haddonm/r4cpue documentation built on May 11, 2020, 1:31 a.m.