# NOT RUN {
plot(Normal$new(mean = 2), "pdf")
lines(Normal$new(mean = 3), "pdf", col = "red", lwd = 2)
# }
# NOT RUN {
# The code below gives examples of how not to use this function.
# Different value supports
plot(Binomial$new(), "cdf")
lines(Normal$new(), "cdf")
# Different functions
plot(Binomial$new(), "pdf")
lines(Binomial$new(), "cdf")
# Too many functions
plot(Binomial$new(), c("pdf", "cdf"))
lines(Binomial$new(), "cdf")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab