Learn R Programming

r4ss (version 1.36.1)

SSplotAgeMatrix: Plot matrix of either length or observed age at true age

Description

Distribution of length at age or observed age at true age is represented as a histogram. Values are from the AGE_LENGTH_KEY and AGE_AGE_KEY sections of Report.sso ($ALK and $AAK in the list created by SS_output)

Usage

SSplotAgeMatrix(replist, option = 1, slices = NULL, scale = NULL,
  plot = TRUE, print = FALSE, labels = c("Age", "Length", "True age",
  "Observed age", "for ageing error type", "Distribution of", "at"),
  pwidth = 6.5, pheight = 5, punits = "in", res = 300,
  ptsize = 10, cex.main = 1, mainTitle = TRUE, plotdir = "default")

Arguments

replist

List created by SS_output

option

Switch set to either 1 for length at true age or 2 for obs. age at true age

slices

Optional input to choose which matrix (slice of the 3D-array) within $AAK or $ALK to plot. By default all slices will be shown. For ageing imprecision this should correspond to the ageing error matrix number. Distribution of length at age ($ALK) is ordered by season, sub-season, and then morph. A future version could allow subsetting plots by these dimensions.

scale

Multiplier for bars showing distribution. Species with many ages benefit from expanded bars. NULL value causes function to attempt automatic scaling.

plot

Plot to active plot device?

print

Print to PNG files?

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

mainTitle

Logical indicating if a title should be included at the top

plotdir

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

See Also

SSplotNumbers