histogram {mStats} | R Documentation |
Histograms with overlay normal curve
Description
histogram()
draws a histogram with formatted texts and
adds a normal curve over the histogram.
Usage
histogram(
data,
var,
breaks = NULL,
xlab = NULL,
main = NULL,
sub = NULL,
labels = TRUE,
freq = TRUE,
curve = TRUE,
...
)
Arguments
data |
Dataset |
var |
variable |
breaks |
|
xlab |
|
main |
|
sub |
|
labels |
|
freq |
|
curve |
logical. If |
... |
Details
If freq
is set to FALSE
, probability densities,
component density, are plotted (so that the histogram has
a total area of one). In this case, normal curve will not be
generated.
Author(s)
Email: dr.myominnoo@gmail.com
Website: https://myominnoo.github.io/
Examples
# histogram(infert, age)
# histogram(infert, age, labels = FALSE)
# histogram(infert, age, freq = FALSE)
[Package mStats version 3.4.0 Index]