Learn R Programming

abd (version 0.1-21)

histochart: Histogram from tabulated data

Description

Uses barchart to build a histogram from tabulated data.

Usage

histochart(x, data=NULL, box.ratio = 100, origin = 0, horizontal = FALSE, ...)

Arguments

x
formula of form frequency ~ value
data
data frame in which the formula x is interpreted
box.ratio
ratio of bar widths to gaps between bars
origin
where do bars begin?
horizontal
Should bars go horizontal?
...
other arguments passed to barchart

Details

This is just a convenience wrapper around barchart.

See Also

barchart

Examples

Run this code
histochart( dbinom(0:30, 30, 0.35) ~ 0:30 )

Run the code above in your browser using DataLab