plotDensityHistogram(x, prob = FALSE, col = "gray", main = "", linecol = "black", lwd = 2, adjust = 1, bw = "nrd0", kernel = "gaussian", ...)
FALSE
, then counts are displayed in the histogram.
If TRUE
, then the density is shown.density
. A lower value makes the density
plot smoother.density
.density
.hist
.hist
function. The density curve
relies on the density
function.
plotNormalHistogram
plotNormalDensity
### Plot of residuals from a model fit with lm
data(Catbus)
model = lm(Steps ~ Sex + Teacher,
data = Catbus)
plotDensityHistogram(residuals(model))
Run the code above in your browser using DataLab