plot.age.dist: Plot the distribution an age class by region and quarter

View source: R/plot.age.dist.r

plot.age.distR Documentation

Plot the distribution an age class by region and quarter

Description

Plot the distribution of proportions of a chosen age class across year between quarters and region from a single model.

Usage

plot.age.dist(
  rep,
  ages,
  year_range = (as.numeric(range(rep)["minyear"])):as.numeric(range(rep)["maxyear"]),
  plot_type = "violin",
  overlay_data = FALSE,
  palette.func = default.model.colours,
  save.dir,
  save.name,
  ...
)

Arguments

rep

a MFCLRep object

ages

The age class that you want to plot the distribution of values across

year_range

The year range to plot the distribution of the recruitment over. Default is all years

plot_type

can be "violin" for a violin plot or "box" for a boxplot. Default is violin plot

overlay_data

Do you want to overlay the original data on the distribution? TRUE or FALSE (default).

palette.func

a function to determine the colours of each area. It is possible to determine your own palette function. Two functions currently exist: default.model.colours() and colourblind.model.colours().

save.dir

Path to the directory where the output will be saved

save.name

Name stem for the output, useful when saving many model outputs in the same directory

...

Passes extra arguements to the palette function. Use the aurgument all.model.colours to ensure consistency of model colours when plottin a subset of models.


PacificCommunity/ofp-sam-diags4MFCL documentation built on Oct. 11, 2023, 1:32 a.m.