Learn R Programming

r4ss (version 1.24.0)

SSplotSpawnrecruit: Plot spawner-recruit curve.

Description

Plot spawner-recruit curve based on output from Stock Synthesis model.

Usage

SSplotSpawnrecruit(replist, subplot = 1:2, add = FALSE, plot = TRUE,
  print = FALSE, xlim = NULL, ylim = NULL,
  xlab = "Spawning biomass (mt)", ylab = "Recruitment (1,000s)",
  bioscale = "default", plotdir = "default", pwidth = 6.5, pheight = 5,
  punits = "in", res = 300, ptsize = 10, cex.main = 1, verbose = TRUE,
  colvec = c("blue", "green3", "black", "red"), legend = TRUE,
  legendloc = "topleft", minyr = "default", textmindev = 0.5,
  virg = TRUE, init = TRUE, forecast = FALSE)

Arguments

replist

list created by SS_output

subplot

vector of which subplots to show. 1=plot without labels, 2=plot with year labels.

add

add to existing plot?

plot

plot to active plot device?

print

print to PNG files?

xlim

optional control of x range

ylim

optional control of y range

xlab

x-axis label

ylab

y-axis label

bioscale

multiplier on spawning biomass, set to 0.5 for single-sex models

plotdir

directory where PNG files will be written. by default it will be the directory where the model was run.

pwidth

width of plot

pheight

height of plot

punits

units for PNG file

res

resolution for PNG file

ptsize

point size for PNG file

cex.main

character expansion for plot titles

verbose

report progress to R GUI?

colvec

vector of length 4 with colors for 3 lines and 1 set of points

legend

add a legend to the figure?

legendloc

location of legend. See ?legend for more info

minyr

minimum year of recruitment deviation to show in plot

textmindev

minimum recruitment deviation for label to be added so only extreme devs are labeled (labels are added to first and last years as well). Default=0.7.

virg

add point for equilibrium conditions (x=B0,y=R0)

init

add point for initial conditions (x=B1,y=R1), only appears if this point differs from virgin values

forecast

include forecast years in the curve?

See Also

SS_plots, SS_output