plotNormalHistogram(x, prob = FALSE, col = "gray", main = "", linecol = "blue", lwd = 2, length = 1000, ...)
FALSE
, then counts are displayed in the histogram.
If TRUE
, then the density is shown.hist
.hist
function. The normal curve
has the same mean and standard deviation as the values in the
vector.
plotNormalDensity
plotDensityHistogram
### Plot of residuals from a model fit with lm
data(Catbus)
model = lm(Steps ~ Sex + Teacher,
data = Catbus)
plotNormalHistogram(residuals(model))
Run the code above in your browser using DataLab