Learn R Programming

abd (version 0.2-8)

histochart: Histogram from tabulated data

Description

Uses lattice::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 lattice::barchart()

Details

This is just a convenience wrapper around lattice::barchart().

Examples

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

Run the code above in your browser using DataLab