stepChart {OpenRepGrid} | R Documentation |
Density histogram with steps instead of bars.
Description
Make a histogram with steps instead of bars. Densities are used for the heights.
Usage
stepChart(vals, breaks = "Sturges", add = FALSE, ...)
Arguments
vals |
Numeric values to display. |
breaks |
Passed on to |
add |
Whether to add the steps to an existing plot ( |
Examples
## Not run:
x <- rnorm(1000)
y <- rnorm(1000, sd = .6)
stepChart(y, breaks = 50)
stepChart(x, add = T, breaks = 50, col = "red")
## End(Not run)
[Package OpenRepGrid version 0.1.18 Index]