View source: R/plot-age-fits-mcmc.R
plot_age_fits_mcmc | R Documentation |
Plot MCMC age fits for an iSCAM model
plot_age_fits_mcmc(
model,
gear = 1,
yrs = NULL,
comp_color = "black",
comp_width = 0.5,
comp_alpha = 0.5,
ci_linetype = c("dotted", "solid", "dashed", "dotdash", "longdash", "twodash"),
ci_color = "red",
ci_alpha = 0.3,
text_title_size = 12,
text_title_inc_mdl_nm = FALSE,
angle_x_labels = FALSE,
show_sample_size_f_only = TRUE,
sample_size_x = 17,
sample_size_y = 0.2
)
model |
An iscam model object (class mdl_cls) |
gear |
The number of the gear to plot |
yrs |
A vector of years to include in the plot. If the maximum extends
past the range of years in the data, the maximum in the data will be used.
If |
comp_color |
Color for the age comp data lines and points |
comp_width |
Age comp bar widths |
comp_alpha |
Age comp bar alpha value (0-1) |
ci_linetype |
See |
ci_color |
Color for the lines or ribbon for the credible intervals |
ci_alpha |
Opacity between 0 and 1 for the credible intervals ribbons.
Only used if |
text_title_size |
Size of text for the axis titles |
text_title_inc_mdl_nm |
Logical. If |
angle_x_labels |
If |
show_sample_size_f_only |
If |
sample_size_x |
The x value (age) to place the sample size label |
sample_size_y |
The y value (0-1) to place the sample size label |
A ggplot2::ggplot()
object
Other Age plotting functions:
plot_age_fits_mpd()
,
plot_age_resids_boxes_mcmc()
,
plot_age_resids_mcmc()
,
plot_age_resids_mpd()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.