## plot the density
ggplot(data.frame(x = c(0, 20)),
aes(x)) +
stat_function(fun = dggamma,
args = list(scale = 5,
shape1 = .25,
shape2 = .75),
colour = "royalblue4") +
labs(x = "",
y = "Density") +
theme_classic()
Run the code above in your browser using DataLab