Computes and Displays Area Under a Normal Curve
normal_area(lo, hi, normal_pars, Color = "orange")
lower bound of interval
upper bound of interval
vector of mean and standard deviation of the normal curve
color of shading in plot
ggplot2 object containing the graphical display.
# NOT RUN {
lo <- 10
hi <- 20
normal_pars <- c(25, 10)
normal_area(lo, hi, normal_pars)
# }
Run the code above in your browser using DataLab