Learn R Programming

r4ss (version 1.24.0)

SSplotBiology: Plot biology related quantities.

Description

Plot biology related quantities from Stock Synthesis model output, including mean weight, maturity, fecundity, and spawning output.

Usage

SSplotBiology(replist, plot = TRUE, print = FALSE, add = FALSE,
  subplots = 1:14, seas = 1, colvec = c("red", "blue", "grey20"),
  shadealpha = 0.1, legendloc = "topleft", plotdir = "default",
  labels = c("Length (cm)", "Age (yr)", "Maturity",
  "Mean weight (kg) in last year", "Spawning output",
  "Length (cm, beginning of the year)", "Natural mortality",
  "Female weight (kg)", "Female length (cm)", "Fecundity",
  "Default fecundity label", "Year"), pwidth = 6.5, pheight = 5,
  punits = "in", res = 300, ptsize = 10, cex.main = 1, verbose = TRUE)

Arguments

replist

List created by SS_output

plot

Plot to active plot device?

print

Print to PNG files?

add

add to existing plot

subplots

vector controlling which subplots to create

seas

which season to plot (obviously only works in seasonal models, but maybe not fully implemented even then)

colvec

vector of length 3 with colors for various points/lines

shadealpha

Transparency parameter used to make default shadecol values (see ?rgb for more info)

legendloc

Location of legend (see ?legend for more info)

plotdir

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

labels

Vector of labels for plots (titles and axis labels)

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

Return updates of function progress to the R GUI?

See Also

SS_plots, SS_output