plotGamma: Plot the PDF of the Gamma distribution.

Description Usage Arguments Details Value Note Examples

Description

Plot the PDF of the Gamma distribution.

Usage

1
plotGamma(shape, rate)

Arguments

shape

shape (α) parameter of the Gamma distribution.

rate

rate (β) parameter of the Gamma distribution.

Details

Note: We use the shape/rate parametrization of Gamma. See https://en.wikipedia.org/wiki/Gamma_distribution for details.

Value

The PDF of Gamma(shape, rate).

Note

The output can be treated like any ggplot2 object and modified accordingly.

Examples

1
2
3
plotGamma(1, 1)
plotGamma(2, 5)
## Not run: plotGamma(2, 5) + ggtitle('I hate the default title!')

FrankPortman/bayesAB documentation built on June 25, 2021, 6:49 p.m.