stepChart: Density histogram withs steps instead of bars

Description Usage Arguments Author(s) Examples

View source: R/utils.r

Description

Make a histogram with steps instead of bars. Densities are used for the heights.

Usage

1
stepChart(vals, breaks = "Sturges", add = FALSE, ...)

Arguments

vals

Numeric values to display.

breaks

Passed on to hist. See ?hist parameter breaks for more information.

add

Whether to add the steps to an existing plot (FALSE) or to create a new plot (default add=TRUE).

Author(s)

Mark Heckmann

Examples

1
2
3
4
5
6
7
8
## 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)

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.