histc | R Documentation |
Draws a histogram with a normal curve that approximates the distribution.
histc(x, from, to, size = 15, ...)
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 |
Adrian Dusa
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.