Learn R Programming

r4ss (version 1.11)

SSplotTimeseries: Plot timeseries data

Description

Plot timeseries data contained in TIME_SERIES output from Stock Synthesis report file. Some values have optional uncertainty intervals.

Usage

SSplotTimeseries(replist, subplot, add = FALSE, areas = "all",
areacols = 1:10, areanames = "default", forecastplot = TRUE, uncertainty
= TRUE, bioscale = "default", plot = TRUE, print = FALSE, plotdir =
"default", verbose = FALSE, btarg=0.4, minbthresh=0.25, xlab = "Year",
labels=c("Total biomass (mt)",
"Total biomass at beginning of season 1 (mt)",
"Summary biomass (mt)",
"Summary biomass at beginning of season 1 (mt)",
"Spawning biomass (mt)",
"Spawning depletion",
"Spawning output (eggs)",
"Age-0 recruits (1,000s)"),
pwidth = 7, pheight = 7, punits =
"in", res = 300, ptsize = 12, cex.main = 1)

Arguments

replist
list created by SS_output
subplot
number controlling which subplot to create
add
add to existing plot? (not yet implemented)
areas
optional subset of areas to plot for spatial models
areacols
vector of colors by area
areanames
names for areas. Default is to use Area1, Area2,...
forecastplot
add points from forecast years
uncertainty
add intervals around quantities for which uncertainty is available
bioscale
scaling for spawning biomass by default it will be set to 0.5 for single-sex models, and 1.0 for all others
plot
plot to active plot device?
print
print to PNG files?
plotdir
directory where PNG or PDF files will be written. by default it will be the directory where the model was run.
verbose
report progress to R GUI?
btarg
Target depletion to be used in plots showing depletion. May be omitted by setting to 0. Default=0.4.
minbthresh
Threshold depletion to be used in plots showing depletion. May be omitted by setting to 0. Default=0.25.
xlab
x axis label for all plots
labels
vector of labels for plots (titles and axis labels)
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

Value

    See Also

    SS_plots, SS_output