View source: R/plot-historical-probs.R
plot_historical_probs | R Documentation |
Plot either: (a) base model's estimate of P(B_t+1 < B_t) and compare with the estimate of that from the year t assessment (using the known catch in year t) (b) base model's estimate of P(B_t+1 < B_40%) and compare with the estimates of that from the year t assessment (using the known catch in year t). Included in management presentation.
plot_historical_probs(
model,
hist_probs,
type = "decline",
end = assess_yr - 1,
xLim = NULL,
add.50 = TRUE,
add.50.col = "darkgrey",
one.year = 2019,
add.projs = FALSE,
num.projs = ct_levels_num,
colors = c("red", "blue"),
pch = c(16, 17),
lwd.val = 1,
legend.cex = 1,
legend.loc = "bottomright",
main.title = NULL,
legend.text = c("From year t's assessment", "From current base model"),
legend.inset = c(0, 0),
add.to.plot = FALSE,
...
)
model |
A model object, created by |
hist_probs |
A data frame containing the data found in
|
type |
"decline" to show probs of spawning biomass declining in year
after historical assessment year, "decline_one_year" to show that for just
one year (to explain in a talk), "bforty" to show prob of being below
|
end |
final year for calculations |
xLim |
range of x (years) axis |
add.50 |
Whether to add horizontal line at 50% |
add.50.col |
Color for 50% line |
one.year |
A single year to plot (may automatically work for more years) |
add.projs |
Whether to add future projections from current base model |
num.projs |
Number of projection catch levels to show |
colors |
The colors to use for the lines in the plot |
pch |
change legend call also if change this |
lwd.val |
Line width |
legend.cex |
Legend font size |
legend.loc |
Legend location |
main.title |
Main title text |
legend.text |
Legent title text |
legend.inset |
Vector for how much to shift the legend, gets parsed to
|
add.to.plot |
whether to add to an existing plot |
... |
Arguments passed to |
A base R plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.