plot-MSE | R Documentation |
Figures of results of the closed-loop simulation by MP
proj_plot(x, MSEhist, type = c("SSB0", "SSBMSY", "SP", "F", "SPR", "Catch"))
prob_plot(x, PM_list = list(), xlim = NULL, ylim = NULL, figure = TRUE)
stoch_plot(
x,
MPstoch,
qval = 0.9,
type = c("SSB0", "SSBMSY", "SP", "F", "SPR", "Catch")
)
hist_sim(
x,
MSEhist,
MP,
sims,
type = c("SSB0", "SSBMSY", "SP", "F", "SPR", "Catch")
)
lollipop_plot(x, PM_list)
tradeoff_plot(x, PMx, PMy, xlab, ylab)
radar_plot(x, PM_list, ...)
x |
An object of class MSE, or a shiny |
MSEhist |
If |
type |
Character describing the type of output. |
PM_list |
A list of PMobj objects, preferably, generated by make_PMobj. |
xlim |
The year range over which to plot annual probabilities of the performance measure if |
ylim |
The y-axis range over which to plot annual probabilities of the performance measure if |
figure |
Logical, whether to plot the performance measure (TRUE) or return a matrix (FALSE). |
MPstoch |
A character vector of MPs to plot. |
qval |
The quantile of the confidence interval to plot. |
MP |
Character, name of MP to plot. |
sims |
Numeric vector (up to length three) indicating the simulations to plot. |
PMx |
A PMobj object to show on the x-axis. |
PMy |
A PMobj object to show on the y-axis. |
xlab |
Name of the performance metric on the x-axis. |
ylab |
Name of the performance metric on the y-axis. |
... |
Additional arguments to spider_web. |
proj_plot
generates median trajectories (historical and projected) with reference points if applicable.
prob_plot
generates either a figure or a table of performance metrics.
stoch_plot
generates median trajectories with confidence intervals.
hist_sim
plots individual simulations (up to three).
lollipop_plot
plots all performance measures for all MPs.
tradeoff_plot
plots a comparison of two performance measures for all MPs.
radar_plot
plots all performance measures for all MPs, where each metric is plotted along the vertex of a polygon.
Various plots using base graphics or ggplot2.
Q. Huynh
library(DLMtool)
Hist <- MSEtool::runMSE(Hist = TRUE)
MSE <- MSEtool::Project(
Hist,
MPs = c("NFref", "AvC"),
extended = TRUE # Needed for type = "SP"
)
MSE@Hist <- Hist
proj_plot(MSE, Hist, type = "SP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.