plot.effort.dev.penalties: Plot effort deviation penalties over time by fishery and...

View source: R/plot.effort.dev.penalties.R

plot.effort.dev.penaltiesR Documentation

Plot effort deviation penalties over time by fishery and region

Description

If time varying effort weights are active (fish flag 66), the effort deviation penalties are taken from the 'penalty' column of the 'freq' object. Otherwise, if the penalty for effort deviations flag (fish flag 13) is less than 0, the penalty is calculated as the square root of the normalised effort multiplied by the absolute value of the effort deviations flag, by fishery. If the penalty for effort deviations flag (fish flag 13) is greater than or equal to 0, the penalty is set to the value of the effort deviations flag, by fishery. Observations with missing effort have no penalty.

Usage

plot.effort.dev.penalties(
  frqreal,
  par,
  fishery_map,
  fisheries = unique(fishery_map$fishery),
  save.dir,
  save.name
)

Arguments

frqreal

A data.frame created by running realisations() on an object of type MFCLFrq.

par

An object of MFCLPar that contains the effort deviations.

fishery_map

A data.frame that describes which fishery is fishing in which region and with which gear. The columns are: fishery_name, region, gear and fishery (the reference number). Only fisheries in the fishery_map will be plotted.

fisheries

Which fisheries to plot. Default is all of them.

save.dir

Path to the directory where the outputs will be saved

save.name

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


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