ggdistribution(func, x, p = NULL, colour = "#000000", linetype = NULL,
fill = NULL, alpha = NULL, ...)
PDF or CDF function
Numeric vector to be passed to func
ggplot2::ggplot instance to plot
Keywords passed to PDC/CDF func
ggdistribution(dnorm, seq(-3, 3, 0.1), mean = 0, sd = 1)
ggdistribution(ppois, seq(0, 30), lambda = 20)
p <- ggdistribution(pchisq, 0:20, df = 7, fill = 'blue')
ggdistribution(pchisq, 0:20, p = p, df = 9, fill = 'red')
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.