Plot Recruitment Deviations
plot_recruitment_deviations(
dat,
module = NULL,
era = "time",
interactive = TRUE,
make_rda = FALSE,
figures_dir = getwd(),
...
)A data frame or names list of data frames (input as `list()`) returned from convert_output. The first data frame in the list is used in calculation of a reference line if one is present
(Optional) A string indicating the linked module_name associated with the label for the plot if known. Default is NULL. By default, the function will select the most relevant module if more than 1 exists.
a string naming the era of data such as historical ("early"), current ("time"), or projected ("fore") data if filtering should occur. Default is set to "time" which is the current time. To plot all data, set era to NULL.
TRUE/FALSE; indicate whether the environment in which the function is operating is interactive. This bypasses some options for filtering when preparing data for the plot. Default is FALSE.
TRUE/FALSE; indicate whether to produce an .rda file containing a list with the figure/table, caption, and alternative text (if figure). If TRUE, the rda will be exported to the folder indicated in the argument "figures_dir". Default is FALSE.
The location of the folder containing the generated figure rda files ("figures") that will be created if the argument `make_rda` = TRUE. Default is the working directory.
Arguments called from ggplot2::geom_line or ggplot2::geom_point
Plot recruitment deviations relative to one over time from an assessment model output file translated to a standardized output (convert_output). There are options to return a `ggplot2` object or export an .rda object containing associated caption and alternative text for the figure.
plot_recruitment_deviations(
dat = stockplotr:::example_data,
interactive = FALSE,
size = 1.5
)
#> ! Multiple module names found in data.
#> ℹ Environment not interactive. Selecting PARAMETERS.
#> Ignoring unknown labels:
#> • colour : "Model"
plot_recruitment_deviations(
dat = stockplotr:::example_data,
era = "early",
interactive = FALSE,
shape = 2
)
#> ! Multiple module names found in data.
#> ℹ Environment not interactive. Selecting PARAMETERS.
#> Ignoring unknown labels:
#> • colour : "Model"