histc: Histogram with a superimposed normal curve

histcR Documentation

Histogram with a superimposed normal curve

Description

Draws a histogram with a normal curve that approximates the distribution.

Usage

histc(x, from, to, size = 15, ...)

Arguments

x

Numeric vector

from

Starting point on the horizontal axis.

to

End point on the horizontal axis.

size

Size of the graphic, in centimeters.

...

Other parameters, specific to the base hist() function.

Author(s)

Adrian Dusa

Examples

x <- sample(18:93, 150, replace = TRUE)

histc(x)

histc(x, 10, 100)

histc(x, 10, 100, xlab = "Age", ylab = "Frequency",
      main = "Histogram for age in years")

dusadrian/statistics documentation built on Jan. 26, 2023, 11:55 p.m.