todo: write a description for make_wtatage_plots

make_wtatage_plots(
  plots = 1:6,
  data,
  counts,
  lengths = NULL,
  dir = getwd(),
  year = format(Sys.Date(), "%Y"),
  maxage = 15
)

Arguments

plots

A vector of digits that specifies which plots to create.

data

A data frame of weight at age data generated from weight_at_age_wide(..., getmean = TRUE).

counts

A data frame of weight at age counts generated from weight_at_age_wide(..., getmean = TRUE, value = "count").

lengths

A data frame of weight at length generated from weight_at_age_wide(..., getmean = TRUE, value = "length"). The default for this argument is NULL, and the function can be ran without supplying length data.

dir

The directory that you want to save the plots in. The default is to save the plots in your current working directory.

year

A character value giving the current year that will be used in the file names for each plot.

maxage

The maximum age of fish modelled in the stock assessment, i.e., what is the age at which all fish are grouped into a plus group.

Author

Ian G. Taylor