Hist | R Documentation |
Nicer-looking histogram
Hist(
x,
...,
col = "gray",
border = "white",
n = 10,
breaks = seq(min(x, na.rm = TRUE), max(x, na.rm = TRUE), len = n),
main = "",
las = 1,
xlab = deparse(substitute(x))
)
x |
A vector of values to make a histogram out of |
... |
Further arguments to |
col |
Fill color for histogram bars; default: gray |
border |
Border (outline) of histogram bars; default: white |
n |
Number of bins |
breaks |
Specific locations at which bins are to be constructed; overrides |
main |
Main title; default: none |
las |
See |
xlab |
Just like in every other plot |
Hist(rnorm(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.