powered by
Make a histogram with steps instead of bars. Densities are used for the heights.
stepChart(vals, breaks = "Sturges", add = FALSE, ...)
Numeric values to display.
Passed on to hist. See ?hist parameter breaks for more information.
hist
?hist
breaks
Whether to add the steps to an existing plot (FALSE) or to create a new plot (default add = TRUE).
FALSE
add = TRUE
if (FALSE) { x <- rnorm(1000) y <- rnorm(1000, sd = .6) stepChart(y, breaks = 50) stepChart(x, add = T, breaks = 50, col = "red") }
Run the code above in your browser using DataLab