View source: R/plot-selex-posteriors.R
plot_selex_posteriors | R Documentation |
Plot the selectivity parameter estimates from all posteriors as many lines with an overlaid errorbar for each age
plot_selex_posteriors(
model = NULL,
type = c("fishery", "survey"),
n_posts = NULL,
age_range = NULL,
show_xlab = TRUE,
post_line_width = 0.1,
post_line_color = "black",
post_line_alpha = 0.1,
post_med_line_width = 1,
post_med_line_color = "blue3",
post_med_line_alpha = 1,
post_line_gap = ts_linegap,
post_med_point_size = 3,
unc_line_width = 1,
unc_line_color = "blue3",
unc_line_alpha = 1,
unc_point_size = 3,
glow = FALSE,
glow_offset = 0.5,
glow_color = "white",
glow_alpha = 1
)
model |
A model list, created by |
type |
One of 1 or 2 where 1 = Fishery and 2 = Acoustic age 2+ survey |
n_posts |
The number of posterior lines to plot. The lines are randomly drawn from all posteriors. if this is larger than the number of posteriors, all posterior lines will be shown |
age_range |
A vector of two for the min and max ages to plot. If |
show_xlab |
Logical. If |
post_line_width |
Thickness of the posterior lines |
post_line_color |
Color of the posterior lines |
post_line_alpha |
Transparency of the posterior lines |
post_med_line_width |
Thickness of the median posterior line |
post_med_line_color |
Color of the median posterior line |
post_med_line_alpha |
Transparency of the median posterior line |
post_med_point_size |
Size of the points on the median posterior line |
unc_line_width |
Thickness of the uncertainty lines |
unc_line_color |
Color of the uncertainty lines and points |
unc_line_alpha |
Transparency for the uncertainty lines and points |
unc_point_size |
Size of the points |
glow |
Logical. If |
glow_offset |
The amount to add to the thickness of the lines and diameter of the points to create the glow effect |
glow_color |
Color of the glow effect |
glow_alpha |
Transparency of the glow effect |
probs |
A vector of two quantiles to include for the uncertainty |
A ggplot2::ggplot()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.