hist: Draw a styled histogram

View source: R/RcssWrappers.R

histR Documentation

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


# 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


Rcssplot documentation built on April 4, 2025, 2:35 a.m.