draw a normal distribution with beautiful illustrations
This was developed for the R Working Example collection in my website, pj.freefaculty.org/R/WorkingExamples
drawnorm( mu = 0, sigma = 1, xlab = "A Normally Distributed Variable", ylab = "Probability Density", main, ps = par("ps"), ... )
mu
: The mu parametersigma
: The sigma parameterxlab
: Label for x axisylab
: Label for Y axismain
: Title for plot. OK to ignore this, we'll make a nice one for youps
: pointsize of text...
: arguments passed to pardrawnorm(mu = 10, sigma = 20) drawnorm(mu= 0, sigma = 1) drawnorm(mu = 102, sigma = 313) drawnorm(mu = 0, sigma = 1, main = "A Standard Normal Distribution, N(0,1)", xlab = "X", ylab = "Density", ps = 7) drawnorm(mu = 0, sigma = 1, ylab = "Density", ps = 14)
Paul Johnson pauljohn@ku.edu
Useful links