SSplotJABBAres: SSplotJABBAres()

View source: R/SSplotJABBAres.R

SSplotJABBAresR Documentation

SSplotJABBAres()

Description

plots residuals for all indices as boxplot with a loess showing systematic trends

Usage

SSplotJABBAres(
  ss3rep = ss3sma,
  subplots = c("cpue", "len", "age")[1],
  plot = TRUE,
  print = FALSE,
  png = print,
  pdf = FALSE,
  indexselect = NULL,
  miny = 3,
  col = NULL,
  pch = 21,
  lty = 1,
  lwd = 2,
  tickEndYr = TRUE,
  xlim = "default",
  ylimAdj = 1.1,
  xaxs = "i",
  yaxs = "i",
  xylabs = TRUE,
  type = "o",
  legend = TRUE,
  legendlabels = "default",
  legendloc = "bottomleft",
  legendorder = "default",
  legendncol = 1,
  legendcex = 1,
  legendsp = 0.9,
  legendindex = NULL,
  pwidth = 6.5,
  pheight = 5,
  punits = "in",
  res = 300,
  ptsize = 10,
  cex.main = 1,
  plotdir = NULL,
  filenameprefix = "",
  par = list(mar = c(5, 4, 1, 1) + 0.1),
  verbose = TRUE,
  boxcol = grey(0.8, 0.5),
  new = TRUE,
  add = FALSE
)

Arguments

ss3rep

from r4ss::SS_output

subplots

optional use of cpue and comp data (only tested for length)

plot

plot to active plot device?

print

print to PNG files?

pdf

not tested for TRUE

indexselect

Vector of fleet numbers for each model for which to compare

miny

minimum abs values of ylim

col

Optional vector of colors to be used for lines. Input NULL

pch

Optional vector of plot character values

lty

Optional vector of line types

lwd

Optional vector of line widths

tickEndYr

TRUE/FALSE switch to turn on/off extra axis mark at final year in timeseries plots.

ylimAdj

Multiplier for ylim parameter. Allows additional white space

xaxs

Choice of xaxs parameter (see ?par for more info)

yaxs

Choice of yaxs parameter (see ?par for more info)

type

Type parameter passed to points (default 'o' overplots points on top of lines)

legend

Add a legend?

legendlabels

Optional vector of labels to include in legend.

legendloc

Location of legend. Either a string like "topleft" or a vector of two numeric values representing the fraction of the maximum in the x and y dimensions, respectively. See ?legend for more info on the string options.

legendorder

Optional vector of model numbers that can be used to have the legend display the model names in an order that is different than that which is represented in the summary input object.

legendncol

Number of columns for the legend.

legendsp

Space between legend labels

legendindex

Allows to add lengend for selected indices (plots)

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

plotdir

Directory where PNG or PDF files will be written. By default it will be the directory where the model was run.

filenameprefix

Additional text to append to PNG or PDF file names. It will be separated from default name by an underscore.

par

list of graphics parameter values passed to par() function

verbose

Report progress to R GUI?

boxcol

color boxes

new

Create new empty plot window

add

surpresses par() to create multiplot figs

legendcex=1

Allows to adjust legend cex

Author(s)

Henning Winker (JRC-EC)


jabbamodel/ss3diags documentation built on Oct. 8, 2024, 11:49 p.m.