drawnorm function

draw a normal distribution with beautiful illustrations

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"), ... )

Arguments

  • 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

Examples

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)

Author(s)

Paul Johnson pauljohn@ku.edu

  • Maintainer: Paul E. Johnson
  • License: GPL (>= 3.0)
  • Last published: 2022-08-06

Useful links