Learn R Programming

⚠️There's a newer version (1.44.0) of this package.Take me there.

r4ss (version 1.18)

R code for Stock Synthesis

Description

Functions for reading output, plotting, exploring and manipulating input files for Richard Methot's Stock Synthesis fisheries stock assessment modeling platform.

Copy Link

Version

Install

install.packages('r4ss')

Monthly Downloads

611

Version

1.18

License

GPL-3

Maintainer

Ian Taylor

Last Published

August 24th, 2012

Functions in r4ss (1.18)

SS_output

A function to create a list object for the output from Stock Synthesis
DoProjectPlots

Make plots from Rebuilder program
SS_html

Create HTML files to view figures in browser.
SS_changepars

Change parameters in the control file.
SSplotComparisons

plot model comparisons
SS_writeforecast

write forecast file
SS_fitbiasramp

Estimate bias adjustment for recruitment deviates
SS_makedatlist

make a list for SS data
SS_writestarter

write starter file
SS_parlines

Get parameter lines from Stock Synthesis control file
SSplotPars

Plot distributions of priors, posteriors, and estimates.
SSplotMCMC_ExtraSelex

Plot uncertainty around chosen selectivity ogive from MCMC.
SS_readctl

read control file
SSplotRecdist

Plot of recruitment distribution among areas and seasons
SS_writedat

write data file
SSplotBiology

Plot biology related quantities.
IOTCmove

Make a map of movement for a 5-area Indian Ocean model
SSplotCatch

Plot catch related quantities.
SSplotSpawnrecruit

Plot spawner-recruit curve.
SSplotMovementRates

Show movement rates on a map.
SSsummarize

Summarize the output from multiple Stock Synthesis models.
SSgetMCMC

Read MCMC output.
addSSsummarize

Add a model to the list of models to compare
mountains

Make shaded polygons with a mountain-like appearance
SS_recdevs

Insert a vector of recruitment deviations into the control file.
SSplotIndices

Plot indices of abundance and associated quantities.
SSFishGraph

A function for converting Stock Synthesis output to the format used by FishGraph
SSplotCohorts

Plot cumulative catch by cohort.
SSplotProfile

Plot likelihood profile results
SSplotSelex

Plot selectivity
mcmc.out

Summarize, analyze and plot key MCMC output.
make_multifig

Create multi-figure plots.
SSplotDiscard

Plot fit to discard fraction.
rich.colors.short

Make a vector of colors.
mcmc.nuisance

Summarize nuisance MCMC output
SSgetoutput

Get output from multiple Stock Synthesis models.
SS_plots

plot many quantities related to output from Stock Synthesis
SSplotMovementMap

Show movement rates on a map.
selfit_spline

visualize parameterization of cubic spline selectivity in SS
SSplotYield

Plot yield and surplus production.
r4ss-package

R tools for Stock Synthesis
SSplotNumbers

Plot numbers-at-age related data and fits.
SSplotComps

Plot composition data and fits.
SSplotTimeseries

Plot timeseries data
sel.line

a function for drawing selecitivity curves
plotCI

Plot points with confidence intervals.
update_r4ss_files

Updates r4ss files to newest versions on web.
SS_writectl

write control file
SStableComparisons

make table comparing quantities across models
SS_readforecast

read forecast file
SSplotTags

Plot tagging data and fits
SSplotMnwt

Plot mean weight data and fits.
TSCplot

Create a plot for the TSC report
SSplotSPR

Plot SPR quantities.
movepars

explore movement parameterizations
stackpoly

function "stackpoly" by Jim Lemon from "plotrix" package
bubble3

Create a bubble plot.
SS_readstarter

read starter file
hist2d

Compute and Plot a 2-Dimensional Histogram
SSplotRecdevs

Plot recruitment deviations
SS_readdat

read data file
SS_splitdat

Split apart bootstrap data to make input file.
selfit

A function to visual parameterization of double normal and double logistic selectivity in Stock Synthesis
SSplotData

Timeline of presence/absence of data by type, year, and fleet.
SS_profile

Run a likelihood profile in Stock Synthesis.