This function takes a list of lists created by the read_admb function plots the selectivity by fishing fleet, sex, year, type (retained or discarded) and model.

plot_selectivity(
  M,
  xlab = "Mid-point of size class (mm)",
  ylab = "Selectivity",
  tlab = "Type",
  ilab = "Period year",
  nrow = NULL,
  ncol = NULL,
  legend_loc = c(1.05, 0.05)
)

Arguments

M

list of lists created by the read_admb function

xlab

the x-axis label for the plot

ylab

the y-axis label for the plot

tlab

the type (retained or discarded) label for the plot that appears above the key

ilab

the year label for the plot that appears above the key

nrow

the number of rows in the facet grid

ncol

the number of columns in the facet grid

legend_loc

(numeric vector); c(x,y) where x and y are the coordinates of the legend box

Value

plot of selectivity

Author

SJD Martell, D'Arcy N. Webber