plot_sensitivity: Sensitivity plot

View source: R/figures-sensitivity.R

plot_sensitivityR Documentation

Sensitivity plot

Description

Plot sensitivity of performance metrics to OM slots across iterations

Usage

plot_sensitivity(
  object,
  pm_function,
  mp = object@MPs,
  slots = c("D", "hs", "M", "ageM", "L50", "Linf", "K", "Isd"),
  ylab = "Performance metric value"
)

Arguments

object

A DLMtool MSE object.

pm_function

A DLMtool performance metric function. The y-axis of the figure will represent the mean ⁠@Stat⁠ value (within each iteration-MP combination, i.e., across time) from the object returned by this function.

mp

A character vector of MPs to plot (must be included in the MSE object). Defaults to all.

slots

A character vector of OM slots to plot. Will be plotted in this order. Set slots = "all" to plot all available OM and observation slots.

ylab

The y-axis label.

Value

A ggplot object

Examples

plot_sensitivity(mse_example, LTY)

pbs-assess/ggmse documentation built on Nov. 21, 2023, 8:06 p.m.