hist | R Documentation |
This is a wrapper for R's hist function. See R's documentation for graphics::hist for further details.
hist(x, Rcss = "default", Rcssclass = NULL, ...)
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 |
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.