# `GigRidges.Binline`
[🔗](https://github.com/giggleton/gig_ridges/blob/v0.1.0/lib/gig_ridges/binline.ex#L1)

The binned ridges' stat: each group's values counted in bins along `x`,
every group of a panel in the panel's bins, and each bin written as
the two ends of a step, so the ridge drawn through them is the histogram's outline.

The bins are the `breaks:` given, or bins `binwidth:` wide, or else `bins:` of them, 30 unless
given, spanning the panel's `x`, each placed by `center:` or `boundary:`,
closed on the right unless `closed: :left`. With `pad:`, as unless `pad: false`, an empty
bin as wide as the first is added before them and one as wide as the last after. A value outside
the bins is not counted, and a panel left with fewer than two breaks, as a scale's
transformation leaves the breaks it cannot take, has no bins and draws nothing.

Its rows are each bin's two ends, at its `xmin` and a hundred-thousandth of its `width` short of
its `xmax`: `count`, the values in it; `density`, the count over the width and the group's
values counted; `ncount` and `ndensity`, each over the group's greatest; and `height`, the
density, which the density ridges' geom (`GigRidges.DensityRidgeline`) draws. Under
`draw_baseline: false`, the empty bins before the group's first counted value and after its
last have no `count`, `density` or `height` but the end beside the counted ones, so the ridge
rises from where its values begin, not along the baseline. A group with nothing counted has no
density or shares, and draws no ridge, its counts missing too under `draw_baseline: false`. A
group's columns holding one value within it are carried.

# `t`

```elixir
@type t() :: %GigRidges.Binline{
  bins: pos_integer(),
  binwidth: :none | float(),
  boundary: :none | float(),
  breaks: :none | [float()],
  center: :none | float(),
  closed: :right | :left,
  draw_baseline: boolean(),
  pad: boolean()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
