This function plots an ESP metric panel

esp_metrics(
  data,
  species,
  region,
  approved = TRUE,
  order = FALSE,
  out,
  name,
  ...
)

Arguments

data

The ESP metric panel data (suggest to use AKesp::metric_panel).

species

The species name

region

The stock region

approved

Boolean. Whether to use only approved metrics (approved = TRUE)

order

Boolean. Whether to order the metrics by value (order = TRUE). Else will be in standard order.

out

Whether the function should save the plot, or return a ggplot object. One of c("ggplot", "save")

name

The file name for the image. Will be saved relative to the working directory.

...

Passed to ggplot2::ggsave

Value

An image file