View source: R/plot-biomass-proj-mcmc.R
plot_biomass_proj_mcmc | R Documentation |
Plot a model's time series (either spawning biomass or relaive spawning biomass) and its projections
plot_biomass_proj_mcmc(
model,
model_name = "Base model",
rel = FALSE,
probs = c(0.025, 0.5, 0.975),
x_space = 0.5,
y_space = ifelse(rel, 0.05, 0.5),
show_bo_lines = FALSE,
bo_refpts = c(0.2, 0.4),
bo_refpt_colors = c("red", "green"),
line_width = 1,
point_size = 2,
angle_x_labels = FALSE,
ylim = NULL,
xlim = NULL,
nudge_catch_labels = c(x = 0.3, y = 0),
proj_catch_vals = NULL,
append_to_catch_level_names = "kt",
...
)
model |
An ISCAM model object (class mdl_cls) |
model_name |
Name of the input model |
rel |
Logical. Make plot relative to initial estimate (B0), also known as depletion |
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 |
x_space |
The amount of x-interval space to pad the left and right of the plot with. To remove all padding, make this 0 |
y_space |
The amount of y-interval space to pad the top and bottom of the plot with. To remove all padding, make this 0 |
show_bo_lines |
Logical. If |
bo_refpts |
A vector of 2 B0-based reference points |
bo_refpt_colors |
A vector of two colors, for the corresponding |
line_width |
Width of all median lines on the plot |
point_size |
Point size for all median points on the plot |
angle_x_labels |
If |
ylim |
The y limits for the plot. If |
xlim |
The x limits for the plot. If |
nudge_catch_labels |
Position to nudge the catch labels by on the right of the ending of the lines |
proj_catch_vals |
The catch values to include in the plot. If |
append_to_catch_level_names |
Text to append to the catch levels in the plot |
... |
Arguments passed to |
An ggplot2::ggplot()
object
Other Time series plotting functions:
plot_biomass_grid_mcmc()
,
plot_biomass_mcmc()
,
plot_biomass_mpd()
,
plot_catch_fit_mcmc()
,
plot_f_mcmc()
,
plot_index_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.