plot_catchability_density: Plot the density histogram for the posteriors for...

View source: R/plot-catchability-density.R

plot_catchability_densityR Documentation

Plot the density histogram for the posteriors for catchability for either the acoustic age-2+ survey or the age-1 index

Description

Plot the density histogram for the posteriors for catchability for either the acoustic age-2+ survey or the age-1 index

Usage

plot_catchability_density(
  model,
  model2 = NULL,
  type = c("age2", "age1"),
  num_bins = 30,
  x_breaks = seq(0, 1.4, 0.1),
  y_breaks = seq(0, 3, 0.5),
  bar_outline_color = "black",
  bar_fill = main_fill,
  bar_alpha = main_alpha,
  line_colors = c("green", "red"),
  line_types = c("solid", "solid"),
  line_widths = c(1, 1)
)

Arguments

model

The base model

model2

The second model, typically last year's base model

type

One of "age2" or "age1

num_bins

The number of bins to use for the histogram created using ggplot2::geom_histogram()

x_breaks

A vector of values to show on the x-axis

y_breaks

A vector of values to show on the y-axis

bar_outline_color

The color of the outline of each bar in the histogram

bar_fill

The color of the fill for each bar in the histogram

bar_alpha

The amount of transparency for each bar in the histogram

line_colors

A vector of two line colors, one for the base model (model) median catchability and the second for last year's model (model2)median catchability

line_types

A vector of two line types for the two median lines

line_widths

A vector of two line widths for the two median lines

Value

A ggplot2::ggplot() object


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.