Skip to contents

Creates an ordered bar chart with the top number of mortalities per fishery.

Usage

plot_stock_mortality(
  fram_db,
  run_id,
  stock_id,
  top_n = 10,
  filters_list = NULL,
  msp = TRUE
)

Arguments

fram_db

fram database object, supplied through connect_fram_db

run_id

numeric, RunID

stock_id

numeric, ID of focal stock

top_n

numeric, Number of fisheries to display

filters_list

list of framrsquared filter functions to apply before plotting.

msp

Use Model Stock Proportion expansion? Default is true

Examples

if (FALSE) { # \dontrun{
fram_db |> plot_stock_mortality(run_id = 132, stock_id = 17)
fram_db |> plot_stock_mortality(run_id = 132, stock_id = 17,
        filters_list = list(filter_wa, filter_marine))
} # }