plot_index_fits: Plot index fits from a stock reduction analysis

View source: R/figures-index-fit.R

plot_index_fitsR Documentation

Plot index fits from a stock reduction analysis

Description

Plot index fits from a stock reduction analysis

Usage

plot_index_fits(
  sra_list,
  survey_names,
  sample_n = min(c(100, sra_list[[1]]@OM@nsim)),
  alpha = 0.05,
  french = isTRUE(getOption("french"))
)

Arguments

sra_list

A named a list of objects from SAMtool::RCM().

survey_names

A character vector of real index names. Columns will be ordered by the order of the survey names.

sample_n

The number of SRA samples to plot.

alpha

Transparency

french

French?

Value

A ggplot2 object.

Examples

library(SAMtool)
om <- MSEtool::testOM
om@nsim <- 10
set.seed(1)
m <- RCM(om,
  data = list(Chist = runif(10), Index = runif(10), I_sd = rep(0.1, 10))
)
fits <- list()
fits[[1]] <- m
fits[[2]] <- m
names(fits) <- c("Sc 1", "Sc 2")
plot_index_fits(fits, survey_names = c("a"), alpha = 0.3)

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