Skip to contents

Plot data-filter scenarios

Usage

# S3 method for class 'sdmTMB_data_scenarios'
plot(
  x,
  type = "index",
  scenarios = NULL,
  index_divisor = NULL,
  unit = NA,
  base_size = 11,
  ...
)

Arguments

x

An object from sdmTMB_data_scenarios().

type

Character. "index" (default), "ratio" (each scenario divided by the baseline) or "scaled" (each scenario divided by its own mean, which compares scenarios with different grids).

scenarios

Optional subset of scenarios to plot (the baseline is always drawn).

index_divisor

Optional numeric divisor applied to index values.

unit

Character. Unit label for the index axis. Default NA.

base_size

Numeric. Base font size. Default 11.

...

Currently ignored.

Value

A ggplot object.

Author

Mikko Vihtakari