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

The density ridges' geom: the ridgeline (`GigRidges.Ridgeline`), but each point's `height`
scaled so the tallest ridge reaches the next baseline, then 1.8 times that above its baseline
where neither the `scale:` option nor a mapped `scale` gives another, so neighbouring ridges
overlap, and cut off by `rel_min_height` in place of `min_height`.

A point whose height is below `rel_min_height` times the layer's greatest height, across every
panel, is left out of its ridge, which breaks there. Like `scale`, `rel_min_height` is an option
and an aesthetic: given as an option, a share from 0 to 1, its value is every point's; else a
mapped column gives each point its own, a point whose value is missing never cut off; else 0,
and no point is left out.

It scales each point's `height` by its `iscale`, which it writes: the spacing between the
layer's baselines, their span over one fewer than how many there are, over the greatest height
of the point's panel, or of the layer under `panel_scaling: false`, so the tallest ridge reaches
the next baseline at a `scale` of 1, whatever height is mapped. Over one baseline, `iscale` is
1, and the heights are drawn as they are; where the greatest height is 0, a point has no
`iscale`, and is left out. A point with no baseline is left out and the rest spaced by the
baselines given. The cut-off is taken on the heights scaled.

# `t`

```elixir
@type t() :: %GigRidges.DensityRidgeline{
  gradient: :none | float(),
  outline: :upper | :full,
  panel_scaling: boolean(),
  point_alpha: term(),
  point_color: term(),
  point_colour: term(),
  point_fill: term(),
  point_shape: term(),
  point_size: term(),
  point_stroke: term(),
  rel_min_height: :none | float(),
  scale: :none | float(),
  vline_color: term(),
  vline_colour: term(),
  vline_linetype: term(),
  vline_width: term()
}
```

---

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