Skip to contents

Plot yield and surplus production from Stock Synthesis output. Surplus production is based on Walters et al. (2008).

Usage

SSplotYield(
  replist,
  subplots = 1:4,
  refpoints = c("MSY", "Btgt", "SPR", "Current"),
  add = FALSE,
  plot = TRUE,
  print = FALSE,
  labels = c("Fraction unfished", "Equilibrium yield (mt)", "Total biomass (mt)",
    "Surplus production (mt)", "Yield per recruit (kg)"),
  col = "blue",
  col2 = "black",
  lty = 1,
  lwd = 2,
  cex.main = 1,
  pwidth = 6.5,
  pheight = 5,
  punits = "in",
  res = 300,
  ptsize = 10,
  plotdir = "default",
  verbose = TRUE
)

Arguments

replist

A list object created by SS_output().

subplots

vector controlling which subplots to create Numbering of subplots is as follows:

  • 1 yield curve

  • 2 yield curve with reference points

  • 3 surplus production vs. biomass plots (Walters et al. 2008)

refpoints

character vector of which reference points to display in subplot 2, from the options 'MSY', 'Btgt', and 'SPR'.

add

add to existing plot? (not yet implemented)

plot

Plot to active plot device?

print

Print to PNG files?

labels

Vector of labels for plots (titles and axis labels).

col

line color for equilibrium plot

col2

line color for dynamic surplus production plot

lty

line type (only applied to equilibrium yield plot at this time)

lwd

Line width for plot elements.

cex.main

Character expansion for plot titles. The default is cex.main=1.

pwidth

Default width of plots printed to files in units of punits.

pheight

Height of plots printed to png files in units of punits. Default is designed to allow two plots per page, with pheight_tall used for plots that work best with a taller format and a single plot per page.

punits

Units for pwidth and pheight. Can be "px" (pixels), "in" (inches), "cm" (centimeters), or "mm" (millimeters). The default is punits="in".

res

Resolution of plots printed to files. The default is res = 300.

ptsize

Point size for plotted text in plots printed to files (see help("png") in R for details).

plotdir

Directory where PNG files will be written.

verbose

A logical value specifying if output should be printed to the screen.

References

Walters, Hilborn, and Christensen, 2008, Surplus production dynamics in declining and recovering fish populations. Can. J. Fish. Aquat. Sci. 65: 2536-2551

Author

Ian Stewart, Ian Taylor