gghist: Simple interface to ggplot2 histogram

View source: R/gghist.r

gghistR Documentation

Simple interface to ggplot2 histogram

Description

Simple interface to ggplot2 histogram

Usage

gghist(x, density = FALSE, ...)

Arguments

x

A vector of values to make a histogram out of

density

Should y-axis be density? (default: FALSE)

...

Further arguments to ggplot2::geom_histogram()

Examples

gghist(rnorm(100))
gghist(runif(100), breaks=seq(0, 1, 0.1))
gghist(rnorm(100), density=TRUE)

pbreheny/breheny documentation built on April 26, 2024, 10:40 a.m.