- dt
A data.frame, tibble or data.table
- length
Character argument giving the name of the length (or age) column in dt
- maturity
Character argument giving the name of the maturity column in dt. Should be either logical (TRUE == mature, FALSE == immature) or integer (1 == mature, 0 == immature).
- sex
Character argument giving the name of the sex column in dt. Ignored if split.by.sex == FALSE.
- split.by.sex
Logical indicating whether the result should be split by sex.
- female.sex
A character denoting female sex in the sex column of dt
- male.sex
A character denoting male sex in the sex column of dt
- length.unit
A character argument giving the unit of length. Will be used in the labels of the figure.
- length.bin.width
Numeric specifying the increment (delta length) by which length data should be binned to calculate maturity proportions. Use NULL to remove from the plot.
- bootstrap.n
Integer defining the number of bootstrap replicates to be used to calculate 95% confidence intervals for the mean 50% mature estimate. If NA (default), the confidence intervals are calculated from the glm object without boostrapping. See Details.
- force.zero.group.length
Numeric indicating the length to which 0-group (all immatures) should be forced. Use NA ignore the forcing.
- force.zero.group.strength
Numeric indicating how many percent of total fish should be added to the specified force.zero.group.length. Cannot be used simultaneously with force.zero.group.n
- force.zero.group.n
Numeric indicating how many observations should be added to the specified force.zero.group.length. If split.by.sex = TRUE, use a named vector of length two with names referring to female.sex and male.sex. Cannot be used simultaneously with force.zero.group.strength
- force.zero.group.cv
Numeric indicating the coefficient of variation for the forced 0-group (all immature) length. Resulting lengths will be randomly generated from a normal distribution.
- xlab
Character giving the x-axis label without unit
- base_size
Base size parameter for ggplot. See ggtheme.
- legend.position
Position of the ggplot legend as a character. See ggtheme.
- ...
Additional arguments passed to geom_density_ridges.