View source: R/plot-selex-gear-mcmc.R
plot_selex_gear_mcmc | R Documentation |
Plot the (possibly time-varying) selectivity for a particular gear in an iscam model
plot_selex_gear_mcmc(
model,
gear = 1,
probs = c(0.025, 0.5, 0.975),
show_maturity = FALSE,
show_ci = TRUE,
ages = as.character(model$dat$start.age:model$dat$end.age),
breaks = seq(0, model$dat$end.age, 5),
ci_type = c("both", "line", "ribbon"),
ci_linetype = c("dotted", "solid", "dashed", "dotdash", "longdash", "twodash"),
ci_alpha = 0.3,
angle_x_labels = FALSE
)
model |
An iscam model object (class mdl_cls) |
gear |
The gear number in the model |
probs |
A 3-element vector of probabilities that appear in the output data frames This is provided in case the data frames have more than three different quantile levels |
show_maturity |
If |
show_ci |
Logical. If |
ages |
A character vector from 1 to the maximum age to show on the plot. Defaults to the max age in the model. This may be needed when The selectivity goes past the maximum age, so that we may see the selectivity curve |
breaks |
A vector representing the tick locations on the x-axis |
ci_type |
One of "line", "ribbon", "both" to show the credible interval |
ci_linetype |
See |
ci_alpha |
Opacity between 0 and 1 for the credible intervals ribbons. Only used if
|
angle_x_labels |
The angle for the x-axis tick labels |
A ggplot2::ggplot()
object
Other Selectivity plotting functions:
plot_selex_mcmc()
,
plot_selex_mpd()
,
plot_tv_selex_mpd()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.