Learn R Programming

TropFishR :fishing_pole_and_fish:

Package description

TropFishR is a collection of fisheries models based on the FAO Manual "Introduction to tropical fish stock assessment" by Sparre and Venema (1998, 1999). Not only scientists working in the tropics will benefit from this new toolbox. The methods work with age-based or length-frequency data and assist in the assessment of data poor fish stocks. Overall, the package comes with 30 functions, 19 data sets and 10 s3 methods. All objects are documented and provide examples that allow reproducing the examples from the FAO manual.

News

You can find detailed descriptions of new features, bug fixes, other changes of specific package versions here.

Installation

Download the released version of TropFishR from CRAN:

install.packages("TropFishR")

Or the development version from GitHub:

# install.packages("remotes")
remotes::install_github("tokami/TropFishR")

Citation

Please use the R command citation("TropFishR") to receive information on how to cite this package.

Documentation

The tutorial demonstrates the use of the main functions of TropFishR for a single-species stock assessment with length-frequency data. The lfqDataTutorial gives a brief description of LFQ data and illustrates how files with raw length measurements (e.g. excel files) can be imported into R and trimmed for the use with TropFishR. The ELEFANTutorial demonstrates the ELEFAN functions available in TropFishR in detail and discusses best practices.

Questions / Issues

In case you have questions or find bugs, please write an email to Tobias Mildenberger or post on TropFishR/issues.

References

  1. Sparre, P., Venema, S.C., 1998. Introduction to tropical fish stock assessment. Part 1. Manual. FAO Fisheries Technical Paper, (306.1, Rev. 2). 407p. link
  2. Sparre, P., Venema, S.C., 1999. Introduction to tropical fish stock assessment. Part 2. Exercises. FAO Fisheries Technical Paper, (306.2, Rev. 2). 94p. link
  3. Mildenberger, T. K., Taylor, M. H. and Wolff, M., 2017. TropFishR: an R package for fisheries analysis with length-frequency data. Methods in Ecology and Evolution, 8: 1520-1527. doi:10.1111/2041-210X.12791 link
  4. Taylor, M. H., and Mildenberger, T. K., 2017. Extending electronic length frequency analysis in R. Fisheries Management and Ecology, 24:330-338. doi:10.1111/fme.12232 link

Copy Link

Version

Install

install.packages('TropFishR')

Monthly Downloads

1,026

Version

1.6.6

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Tobias K Mildenberger

Last Published

May 1st, 2025

Functions in TropFishR (1.6.6)

Z_BevertonHolt

Beverton & Holt's Z-Equations
ELEFAN_SA

ELEFAN_SA
alba

Length-frequency data of the clam Abra alba
ELEFAN

ELEFAN
ELEFAN_GA

ELEFAN_GA
VPA

Virtual Population Analysis (VPA)
Z_CPUE

Estimate Z from CPUE data
Bhattacharya

Bhattacharya's method
M_empirical

Empirical formulas for the estimation of natural mortality
VBGF

Von Bertalanffy Growth function (VBGF)
growth_length_age

Estimation of growth parameter using length-at-age data
date2yeardec

Date - Year conversion
growth_tagging

Growth from tagging data
gillnet

Gillnet data
gillnetfit

Millar's original gillnet selectivity fitting function
emperor

Emperor data
goatfish

Yellowstriped goatfish data
bream

bream data
catchCurve

Catch curve
haddock

Haddock data
hake

Hake data
plot.VPA

VPA plot
lfqRestructure

Restructuring of length frequency data
plot.lfq

Plotting of length frequency data (with VBGF curves)
lfqModify

Modify lfq data for further analysis
lfqCreate

Create lfq data from length measurements
plot.catchCurve

Plotting catch curve
lfqFitCurves

Fitting VBGF growth curves through lfq data
plot.predict_mod

Plotting prediction models yield per recruit and Thompson & Bell
plot.Bhattacharya

Bhattacharya plot
plot.recruitment

Plot of recruitment patterns
plot.select_Millar

Millar's selectivity plot
plot.select

Selectivity plot
plot.prod_mod

Plotting production models
plot.prod_mod_ts

Plotting time series production models
prod_mod_ts

Production models with time series fitting
rcurves_Millar

Predict gillnet selectivity (old Millar method)
prod_mod

Production models
powell_wetherall

Powell-Wetherall method
predict_mod

Prediction models
startingPoint2tanchor

Convert FiSAT's starting point to t_anchor value
recruitment

Recruitment patterns
select_ogive

Selectivity patterns
select

Selectivity model
synCAA1

Synthetic Catch-at-age data I
shrimps

Shrimp data
synCAA2

Synthetic Catch-at-age data II
synCPUE

Synthetical catch per unit of effort (CPUE) dataset
synLFQ1

Synthetic length-frequency data I
stock_sim

Stock simulation
synLFQ6

Synthetic length-frequency data VI (without seasonal oscillation)
synLFQ7

Synthetic length-frequency data VII with seasonal oscillation
select_Millar

Millar's selectivity model
trammelnet

Trammel net data
synLFQ3

Synthetic length frequency data III
trawl_fishery_Java

Data from the trawl fishery off the North coast of Java
ypr

Yield per recruit
synLFQ2

Synthetic length frequency data II
synLFQ4

Synthetic length-frequency data IV (with seasonal oscillation)
synLFQ5

Synthetic length-frequency data V (without seasonal oscillation)
synLFQ8

Synthetic length-frequency data VIII with variable harvest rate
ypr_sel

Yield per recruit with selection ogive
rtypes_Millar

Millar's selectivity types
tilapia

Tilapia data
whiting

Whiting data
yeardec2date

Year - Date conversion