Learn R Programming

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

r4ss (version 1.20)

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.20

License

GPL-3

Maintainer

Ian Taylor

Last Published

March 15th, 2013

Functions in r4ss (1.20)

SS_output

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

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

Run retrospective analyses
SS_recdevs

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

Read MCMC output.
SSplotComparisons

plot model comparisons
SS_writedat

write data file
SSplotMCMC_ExtraSelex

Plot uncertainty around chosen selectivity ogive from MCMC.
SS_readdat

read data file
SS_splitdat

Split apart bootstrap data to make input file.
SSbootstrap

Fit models to parametric bootstraps
SS_parlines

Get parameter lines from Stock Synthesis control file
SSplotTags

Plot tagging data and fits
SSplotRecdist

Plot of recruitment distribution among areas and seasons
SSplotSelex

Plot selectivity
SS_fitbiasramp

Estimate bias adjustment for recruitment deviates
SSplotCohorts

Plot cumulative catch by cohort.
SSplotNumbers

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

Plot composition data and fits.
SS_writectl

write control file
mcmc.nuisance

Summarize nuisance MCMC output
SSplotSPR

Plot SPR quantities.
TSCplot

Create a plot for the TSC report
sel.line

a function for drawing selecitivity curves
stackpoly

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

Plot likelihood profile results
movepars

explore movement parameterizations
SS_changepars

Change parameters in the control file.
SSplotBiology

Plot biology related quantities.
SSplotRetroDevs

Make squid plot of retrospectives of recruitment deviations.
SStableComparisons

make table comparing quantities across models
SSplotSummaryF

Plot the summary F (or harvest rate).
SS_plots

plot many quantities related to output from Stock Synthesis
SSplotPars

Plot distributions of priors, posteriors, and estimates.
SSplotYield

Plot yield and surplus production.
mcmc.out

Summarize, analyze and plot key MCMC output.
SS_writeforecast

write forecast file
SS_html

Create HTML files to view figures in browser.
update_r4ss_files

Updates r4ss files to newest versions on web.
SSplotTimeseries

Plot timeseries data
addSSsummarize

Add a model to the list of models to compare
hist2d

Compute and Plot a 2-Dimensional Histogram
plotCI

Plot points with confidence intervals.
SSplotIndices

Plot indices of abundance and associated quantities.
SSFishGraph

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

read starter file
SS_profile

Run a likelihood profile in Stock Synthesis.
SS_readctl

read control file
SSplotMnwt

Plot mean weight data and fits.
r4ss-package

R tools for Stock Synthesis
SS_makedatlist

make a list for SS data
SSplotMovementRates

Show movement rates on a map.
SSplotData

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

Create multi-figure plots.
SSplotRecdevs

Plot recruitment deviations
SSplotMovementMap

Show movement rates on a map.
SSgetoutput

Get output from multiple Stock Synthesis models.
SSsummarize

Summarize the output from multiple Stock Synthesis models.
SS_readforecast

read forecast file
SSplotDiscard

Plot fit to discard fraction.
selfit_spline

visualize parameterization of cubic spline selectivity in SS
selfit

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

write starter file
SS_write_length.fit

Write length.fit file to be used by the MFCL length-comp viewer.
SSplotSpawnrecruit

Plot spawner-recruit curve.
bubble3

Create a bubble plot.
mountains

Make shaded polygons with a mountain-like appearance
rich.colors.short

Make a vector of colors.
SSplotCatch

Plot catch related quantities.
DoProjectPlots

Make plots from Rebuilder program