plot.recruitment: Plot of recruitment patterns

Description Usage Arguments References Examples

View source: R/plot.recruitment.R

Description

This function plots the recruitment patterns from the recruitment model.

Usage

1
2
3
## S3 method for class 'recruitment'
plot(x, percent = TRUE, col = "darkgreen",
  xtitle = "default", ytitle = "default", ...)

Arguments

x

list of the class "recruitment"

percent

logical; should number of recruits be relative (percentage)?

col

colour of bars (default is "darkgreen")

xtitle

title of x axis (default "rel. months" or no title, respectively)

ytitle

title of y axis (default "# Recruits" or "Recruits [%]", respectively)

...

standard parameters of barplot

References

Sparre, P., Venema, S.C., 1998. Introduction to tropical fish stock assessment. Part 1. Manual. FAO Fisheries Technical Paper, (306.1, Rev. 2). 407 p.

Examples

1
2
3
4
5
6
7
dat <- list(midLengths = seq(2,98,4),
               catch = c(0.6,17.6,93,83.2,12.6,0.3,0,0,0,1,17.1,51.4,
               26.1,2.2,0.2,4.5,21.6,17.6,3.7,8.7,10.6,6.3,5.6,2.9,0.8),
               Linf = 100,
               K = 0.5)
output <- recruitment(param = dat, tsample = 0.25)
plot(output, percent = FALSE)

tokami/TropFishR documentation built on Aug. 24, 2018, 11:31 p.m.