plot.maturity: Plot maturity for all year classes

View source: R/plotMaturity.R

plot.maturitybyyearsR Documentation

Plot maturity for all year classes

Description

Plot maturity for all year classes

Usage

## S3 method for class 'maturitybyyears'
plot(x, ...)

## S3 method for class 'maturity'
plot(x, ...)

## S3 method for class 'summary.maturity'
plot(x, type = "maturity", ...)

Arguments

x

list, Result from runMaturityYearByYear

...

additional arguments

type

either "maturity" or "prediciton".

plot

logical, indicating whether the figure is to be printed

Value

ggplot2 plot

Examples

## Not run: 
data(cap)
data(catch)
data(maturityInitialParameters)
plot(runMaturityYearByYear(cap, catch=catch,
initPar =maturityInitialParameters[maturityInitialParameters$agegr =="2-3",],
 min_age = 2, max_age = 3, plot = FALSE))
 
## End(Not run)

IMRpelagic/bifrost documentation built on Oct. 17, 2023, 7:11 a.m.