SSplotCatch: Plot catch related quantities.

Description Usage Arguments Author(s) See Also

View source: R/SSplotCatch.R

Description

Plot catch related quantities from Stock Synthesis output. Plots include harvest rate, continuous F, landings, and discard fraction.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
SSplotCatch(replist, subplots = 1:15, add = FALSE, areas = 1,
plot = TRUE, print = FALSE, type = "l", fleetlty = 1,
fleetpch = 1, fleetcols = "default", fleetnames = "default", lwd = 3,
areacols = "default", areanames = "default", minyr = NULL, maxyr = NULL,
annualcatch = TRUE, forecastplot = TRUE, plotdir = "default",
showlegend = TRUE, legendloc = "topleft", xlab = "Year",
labels = c("Harvest rate/Year", "Continuous F", "Landings",
"Total catch", "Predicted Discards", "Discard fraction", "(mt)",
"(numbers x1000)", "Observed and expected",
"aggregated across seasons"),
catchasnumbers = NULL, catchbars = TRUE, pwidth = 7, pheight = 7,
punits = "in", res = 300, ptsize = 12, cex.main = 1, verbose = TRUE)

Arguments

replist

List created by SS_output

subplots

Vector controlling which subplots to create

add

Add to existing plot? (not yet implemented)

areas

Optional subset of areas to plot for spatial models

plot

Plot to active plot device?

print

Print to PNG files?

type

Type parameter passed to plot function. Default "l" is lines only. Other options include "o" for overplotting points on lines.

fleetlty

Vector of line type by fleet

fleetpch

Vector of plot character by fleet

fleetcols

Vector of colors by fleet

fleetnames

Optional replacement for fleenames used in data file

lwd

Line width

areacols

Vector of colors by area. Default uses rich.colors by Arni Magnusson

areanames

Names for areas. Default is to use Area1, Area2,...

minyr

Optional input for minimum year to show in plots

maxyr

Optional input for maximum year to show in plots

annualcatch

Include plot of catch aggregated across seasons within each year

forecastplot

Add points from forecast years

plotdir

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

showlegend

Put legend on plot

legendloc

Location of legend (see ?legend for more info)

xlab

x-label for all plots

labels

Vector of labels for plots (titles and axis labels)

catchasnumbers

Is catch in numbers instead of biomass? Should be set automatically if set to NULL. If fleets include a mix of biomass and numbers, then catch plots should be interpreted carefully.

catchbars

Show catch by fleet as barplot instead of stacked polygons? (default=TRUE)

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 console?

Author(s)

Ian Taylor, Ian Stewart

See Also

SS_plots, SS_output


r4ss documentation built on May 2, 2019, 4:56 p.m.