Learn R Programming

bayesAB (version 1.1.3)

plotGamma: Plot the PDF of the Gamma distribution.

Description

Plot the PDF of the Gamma distribution.

Usage

plotGamma(shape, rate)

Arguments

shape

shape (\(\alpha\)) parameter of the Gamma distribution.

rate

rate (\(\beta\)) parameter of the Gamma distribution.

Value

The PDF of Gamma(shape, rate).

Details

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

Examples

Run this code
# NOT RUN {
plotGamma(1, 1)
plotGamma(2, 5)
# }
# NOT RUN {
plotGamma(2, 5) + ggtitle('I hate the default title!')
# }

Run the code above in your browser using DataLab