plot-MSE: Plot output from MSE

plot-MSER Documentation

Plot output from MSE

Description

Figures of results of the closed-loop simulation by MP

Usage

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, ...)

Arguments

x

An object of class MSE, or a shiny reactivevalues object containing a slot named MSEproj which is the MSE object.

MSEhist

If x is an MSE object, then a Hist object may also be needed.

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 figure = TRUE.

ylim

The y-axis range over which to plot annual probabilities of the performance measure if figure = TRUE.

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.

Details

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.

Value

Various plots using base graphics or ggplot2.

Author(s)

Q. Huynh

Examples

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")


Blue-Matter/RPC documentation built on Feb. 3, 2025, 11:20 a.m.