plot.maturitybyyears | R Documentation |
Plot maturity for all year classes
## S3 method for class 'maturitybyyears'
plot(x, ...)
## S3 method for class 'maturity'
plot(x, ...)
## S3 method for class 'summary.maturity'
plot(x, type = "maturity", ...)
x |
list, Result from runMaturityYearByYear |
... |
additional arguments |
type |
either "maturity" or "prediciton". |
plot |
logical, indicating whether the figure is to be printed |
ggplot2 plot
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.