View source: R/plot-catchability-density.R
plot_catchability_density | R Documentation |
Plot the density histogram for the posteriors for catchability for either the acoustic age-2+ survey or the age-1 index
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)
)
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
|
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
( |
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 |
A ggplot2::ggplot()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.