Histogram layer

geom_histogram(
  mapping = NULL,
  data = NULL,
  color = NULL,
  alpha = NULL,
  bins = 30,
  binwidth = NULL,
  position = "stack"
)

Arguments

mapping, data, color, alpha

As in geom_point().

bins

Number of bins (ignored when binwidth is given).

binwidth

Bin width in data units.

position

"stack" (default), "dodge", or "identity".

Value

A Layer.