plot_cdf {distributions3} | R Documentation |
Plot the CDF of a distribution
Description
A function to easily plot the CDF of a distribution using ggplot2
. Requires ggplot2
to be loaded.
Usage
plot_cdf(d, limits = NULL, p = 0.001, plot_theme = NULL)
Arguments
d |
A |
limits |
either |
p |
If |
plot_theme |
specify theme of resulting plot using |
Examples
N1 <- Normal()
plot_cdf(N1)
N2 <- Normal(0, c(1, 2))
plot_cdf(N2)
B1 <- Binomial(10, 0.2)
plot_cdf(B1)
B2 <- Binomial(10, c(0.2, 0.5))
plot_cdf(B2)
[Package distributions3 version 0.2.1 Index]