stepChart | R Documentation |
Make a histogram with steps instead of bars. Densities are used for the heights.
stepChart(vals, breaks = "Sturges", add = FALSE, ...)
vals |
Numeric values to display. |
breaks |
Passed on to |
add |
Whether to add the steps to an existing plot ( |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.