Learn R Programming

r4ss (version 1.15)

SSplotCatch: Plot catch related quantities.

Description

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

Usage

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 = FALSE, 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?
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?

Value

    See Also

    SS_plots, SS_output