R/report_auxiliary.R
plot_steepness.Rd
Plots the probability distribution function of steepness from the mean and standard deviation.
plot_steepness(
m,
sd,
is_transform = FALSE,
SR = c("BH", "Ricker"),
color = "black"
)
The mean of the distribution (vectorized).
The standard deviation of the distribution (vectorized).
Logical, whether the mean and standard deviation are in normal space (FALSE) or transformed space.
The stock recruitment relationship (determines the range and, if relevant, transformation of steepness).
A vector of colors.
A plot of the probability distribution function. Vertical dotted line indicates mean of distribution.
The function samples from a beta distribution with parameters alpha and beta that are converted from the mean and standard deviation. Then, the distribution is transformed from 0 - 1 to 0.2 - 1.
mu <- 0.8
stddev <- 0.1
plot_steepness(mu, stddev)