View source: R/plot-index-mcmc.R
plot_index_mcmc | R Documentation |
Plot MCMC index fits or residuals for a single or group of models by gear
plot_index_mcmc(
models,
type = c("fits", "resids"),
surv_index,
gear = NULL,
start_year = 1996,
end_year = 2021,
append_base_txt = NULL,
legend_title = "Models",
palette = iscam_palette,
base_color = "black",
dodge = 0.3,
index_line_width = 0.5,
index_point_size = 2,
index_color = "darkgrey",
fit_line_width = 0.5,
fit_point_size = 2,
errbar_width = 0.5,
leg_loc = c(1, 1),
text_title_size = 12,
angle_x_labels = FALSE,
units = c("kt", "1000 t")
)
models |
A list of iscam model objects (class mdl_lst_cls) |
type |
Either 'fits' or 'resids' for model fits or residuals respectively |
surv_index |
The |
gear |
A vector of gear numbers to show panels for. If |
start_year |
Year to start the plot |
end_year |
Year to end the plot |
append_base_txt |
A vector of strings to append to the model names for display on the plot legend or title |
legend_title |
Title for legend |
palette |
A palette value that is in RColorBrewer::brewer.pal.info |
base_color |
A color to prepend to the brewer colors which are set by
|
dodge |
Amount to offset multiple model points on x-axis (in years) |
index_line_width |
The index data error bar and connecting line width |
index_point_size |
The index data point size |
index_color |
The color used for the observed index lines and points |
fit_line_width |
The model fit error bar and connecting line width |
fit_point_size |
The model fit point size |
errbar_width |
The width of the top and bottom crossbar of the errorbars |
leg_loc |
A two-element vector describing the X-Y values between 0 and 1 to anchor the legend to. eg. c(1, 1) is the top right corner and c(0, 0) is the bottom left corner |
text_title_size |
Size of text for the axis titles |
angle_x_labels |
If |
units |
One of "1000 t" or "kt". The text that will appear in the y-axis label. The "1000 t" text will be changed to "1,000 t" or "1 000 t" for English or French respectively |
Other Time series plotting functions:
plot_biomass_grid_mcmc()
,
plot_biomass_mcmc()
,
plot_biomass_mpd()
,
plot_biomass_proj_mcmc()
,
plot_catch_fit_mcmc()
,
plot_f_mcmc()
,
plot_index_mpd()
,
plot_q_mcmc()
,
plot_rdevs_mcmc()
,
plot_recr_grid_mcmc()
,
plot_recr_mcmc()
,
plot_recr_mpd()
,
plot_ts_mcmc()
,
plot_vuln_mcmc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.