gghist | R Documentation |
Simple interface to ggplot2 histogram
gghist(x, density = FALSE, ...)
x |
A vector of values to make a histogram out of |
density |
Should y-axis be density? (default: FALSE) |
... |
Further arguments to |
gghist(rnorm(100))
gghist(runif(100), breaks=seq(0, 1, 0.1))
gghist(rnorm(100), density=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.