plot_pdf | R Documentation |
A function to easily plot the PDF of a distribution using ggplot2
. Requires ggplot2
to be loaded.
plot_pdf(d, limits = NULL, p = 0.001, plot_theme = NULL)
d |
A |
limits |
either |
p |
If |
plot_theme |
specify theme of resulting plot using |
N1 <- Normal()
plot_pdf(N1)
N2 <- Normal(0, c(1, 2))
plot_pdf(N2)
B1 <- Binomial(10, 0.2)
plot_pdf(B1)
B2 <- Binomial(10, c(0.2, 0.5))
plot_pdf(B2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.