Rcssplot (version 1.0.0)

hist: Draw a styled histogram

Description

This is a wrapper for R's hist function. See R's documentation for graphics::hist for further details.

Usage

hist(x, Rcss = "default", Rcssclass = NULL, ...)

Arguments

x

numeric vector

Rcss

style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle()

Rcssclass

character, style class

...

Further parameters, see documentation of graphics::hist

Examples

Run this code
# NOT RUN {
# draw a complete histogram
dataset <- rpois(400, 6)
hist(dataset, breaks=seq(0, max(dataset)))
# only obtain the bin counts, without plotting
histdata <- hist(dataset, breaks=seq(0, 2+max(dataset), by=2), plot=FALSE)
histdata

# }

Run the code above in your browser using DataLab