View source: R/plot_timeseries.R
plot_timeseries | R Documentation |
Plot time series data from an MSE or OM simulation run
plot_timeseries(
ps = NULL,
type = "ssb",
time = "mid",
ci = c(0.05, 0.95),
by_country = FALSE,
yr_lim = c(NA_real_, NA_real_),
ylim = c(NA_real_, NA_real_),
ci_lines = TRUE,
show_ci = TRUE,
show_ssb0 = TRUE,
show_hcr = TRUE,
show_hcr_values = TRUE,
show_y_values = TRUE,
rev_scenarios = FALSE,
legend_position = c(0.26, 0.85),
ssb_line_txt_cex = 0.8,
ssb_line_col = "black",
ssb_line_type = 2,
...
)
ps |
A plot setup object as output by |
type |
One of 'ssb', 'ssb_ssb0', catch', 'recr', aas', 'aac','aap' |
time |
Either 'beg' for beginning of the year SSB or 'mid' for mid-year SSB.
Only used if |
ci |
A vector of length two of the lower and upper credible interval values. |
by_country |
If |
yr_lim |
A vector of 2 for minimum and maximum yrs to show on the plot. If either are NA, the limits of the data are used. |
ylim |
A vector of 2 for limits of the y-axis. If either are NA, the limits of the data are used. |
ci_lines |
If |
show_ci |
If |
show_ssb0 |
If |
show_hcr |
If |
show_hcr_values |
If |
show_y_values |
If |
rev_scenarios |
If |
legend_position |
A vector of two - X and Y position for the legend. See |
ssb_line_txt_cex |
Size multiplier for SSB reference point line labels. |
ssb_line_col |
Color for SSB reference point line labels. |
ssb_line_type |
Line type for SSB reference point line labels. |
... |
Extra arguments to pass to |
A ggplot2::ggplot()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.