Learn R Programming

r4ss (version 1.15)

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)", plotdir = "default",
pwidth = 7, pheight = 7, punits = "in", res = 300, ptsize = 12,
cex.main = 1,  verbose = TRUE, line1 = "blue", line2 = "green3",
line3 = "black", minyr = "default", textmindev = 0.5, ptcol = "red",
virg = TRUE, init = 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
plotdir
directory where PNG files will be written. by default it will be the directory where the model was run.
pwidth
width of plot written to PNG file
pheight
height of plot written to PNG file
punits
units for PNG file
res
resolution for PNG file
ptsize
ptsize for PNG file
cex.main
character expansion for plot titles
verbose
report progress to R GUI?
line1
first line color
line2
second line color
line3
third line color
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.
ptcol
point color
virg
add point for equilibrium conditions (x=B0,y=R0)
init
add point for initial conditions (x=B1,y=R1)

Value

    See Also

    SS_plots, SS_output