powered by
Histogram with normal curve superimposed to help with “by-eye” assessments of normality of distribution
histNormal( x, xlab = deparse(substitute(x)), ylab = "Frequency", main = deparse(substitute(x)), breaks = "Sturges", ylim = NULL )
A numeric vector
x-axis label
x-axis
y-axis label
y-axis
Plot title
Passed to hist() function (?hist for details)
hist()
?hist
y-axis limits
# histNormal() with data from a SMART survey in Kabul, Afghanistan # (dist.ex01) svy <- dist.ex01 histNormal(svy$muac) histNormal(svy$haz) histNormal(svy$waz) histNormal(svy$whz)
Run the code above in your browser using DataLab