plot_recruitment_devs | R Documentation |
Plot recruitment deviations as points and errorbars, with a running mean of the median values
plot_recruitment_devs(
model,
run_mean_yrs = 3,
point_size = 1,
line_size = 0.5,
errorbar_size = 0.5,
zeroline_size = 0.5,
zeroline_type = "dashed",
prod_yrs = 1990:1999,
show_prod_yrs = TRUE,
xlim = NA,
show_x_axis = TRUE,
show_y_axis = TRUE,
x_axis_label_size = 8,
x_axis_tick_label_size = 8,
y_axis_label_size = 8,
y_axis_tick_label_size = 8,
x_axis_label_newline_length = 50,
y_axis_label_newline_length = 40,
x_axis_position = "bottom",
y_axis_position = "left",
annot = "e",
translate = FALSE
)
model |
an iscam model object |
run_mean_yrs |
number of years to set the running mean calculation to |
point_size |
Size of points for median recruitment |
line_size |
thickness of the line for the running mean |
errorbar_size |
thickness of errorbars for recruitment deviations |
zeroline_size |
thickness of guide line at zero deviation |
zeroline_type |
type of of guide line at zero deviation |
prod_yrs |
Numeric vector. Productive period to calculate the USR. Default 1990:1999. |
show_prod_yrs |
Logical. Show vertical band for productive period. Default TRUE. |
xlim |
x-limits for the plot. Implemented with [ggplot2::coord_cartesian()] |
show_x_axis |
see [modify_axes_labels()] |
show_y_axis |
see [modify_axes_labels()] |
x_axis_label_size |
see [modify_axes_labels()] |
x_axis_tick_label_size |
see [modify_axes_labels()] |
y_axis_label_size |
see [modify_axes_labels()] |
y_axis_tick_label_size |
see [modify_axes_labels()] |
x_axis_label_newline_length |
see [newline_format()] |
y_axis_label_newline_length |
see [newline_format()] |
annot |
a character to place in parentheses in the top left of the plot. If NA, nothing will appear |
translate |
Logical. If TRUE, translate to french |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.