Learn R Programming

MSEtool (version 1.3.0)

plot.SRA: Plot SRA scope output

Description

Produces HTML file (via markdown) figures of parameter estimates and output from an '>Assessment object. Plots histograms of operating model parameters that are updated by the SRA scoping function, as well as diagnostic plots for the fits to the SRA for each simulation.

Usage

# S4 method for SRA,missing
plot(x, filename = "SRA_scope",
  dir = tempdir(), sims = 1:OM@nsim, Year = NULL, open_file = TRUE,
  quiet = TRUE, ...)

Arguments

x

An object of class '>SRA (output from SRA_scope).

filename

Character string for the name of the markdown and HTML files.

dir

The directory in which the markdown and HTML files will be saved.

sims

A logical vector of length OM@nsim or a numeric vector indicating which simulations to keep.

Year

Optional, a vector of years for the historical period for plotting.

open_file

Logical, whether the HTML document is opened after it is rendered.

quiet

Logical, whether to silence the markdown rendering function.

...

Other arguments to pass to render.

Value

Returns invisibly the output from render.

See Also

'>SRA SRA_scope