View source: R/calcGammaPDFs.R
plot_pdf | R Documentation |
Function to plot a gamma pdf for post-molt size parameterized by the mean and scale.
plot_pdf(z_, mnZ, beta)
z_ |
|
mnZ |
|
beta |
|
Expands z_
by 0:100
to plot the pdf.
Overplots output from pdf_z, pdf_dz, and pdf_gamma to
demonstrate equivalency.
The underlying gamma pdf (pdf_gamma) is defined as
pdf(x) = \frac{1}{\Gamma(\alpha) \theta^\alpha} x^(\alpha-1) e^{-\frac{x}{\theta}}
where x
is the molt increment (i.e., post-molt size = z_+x
),
\theta =
beta
is the scale parameter, and
\alpha
is the shape parameter such that
\alpha = \frac{\mu}{\theta}
where \mu
is the mean molt increment (mnZ-z_
).
ggplot2 plot object showing pdf and mean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.