if(!requireNamespace("ggplot2")) {
if(interactive() || is.na(Sys.getenv("_R_CHECK_PACKAGE_NAME_", NA))) {
stop("not all packages required for the example are installed")
} else q() }
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)
Run the code above in your browser using DataLab