Skip to contents

Draw a normal curve and shade area under an interval (probability)

Usage

normProb(a, b, outside = FALSE, ...)

Arguments

a, b

Endpoints of the interval

outside

Shade the area outside (a,b)? Default is FALSE (i.e., shade the area inside a and b)

...

Additional arguments to plot()

Examples

normProb(1, 2)

normProb(1, 2, outside=TRUE)

normProb(1, 2, lwd=5, col='pink', main='Nice!')