Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/report_auxiliary.R
Plots the probability distribution function of steepness from the mean and standard deviation.
1 2 3 4 5 6 7 | plot_steepness(
m,
sd,
is_transform = FALSE,
SR = c("BH", "Ricker"),
color = "black"
)
|
m |
The mean of the distribution (vectorized). |
sd |
The standard deviation of the distribution (vectorized). |
is_transform |
Logical, whether the mean and standard deviation are in normal space (FALSE) or transformed space. |
SR |
The stock recruitment relationship (determines the range and, if relevant, transformation of steepness). |
color |
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.
Q. Huynh
plot_lognormalvar
plot_betavar
1 2 3 | mu <- DLMtool::Simulation_1@steep
stddev <- DLMtool::Simulation_1@steep * DLMtool::Simulation_1@CV_steep
plot_steepness(mu, stddev)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.