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 parameter |
sigma |
The sigma parameter |
xlab |
Label for x axis |
ylab |
Label for Y axis |
main |
Title for plot. OK to ignore this, we'll make a nice one for you |
ps |
pointsize of text |
... |
arguments passed to par |
Paul Johnson <pauljohn@ku.edu>
drawnorm(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)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.