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

The jittered points' jitter: each of the layer's points,
its rows whose `datatype` is `"point"`, moved across by up to `width:` either way, 0 unless
given, and set up from its baseline by `yoffset:`, 0 unless given, and up to `height:` either
way, 0.2 unless given, in the units of the y axis, its `ymin` the height it is drawn at. Every
other row stays where it is, but under `adjust_vlines:` the quantile lines, the rows whose
`datatype` is `"vline"`, which then run across the band the points fall in, from `yoffset:`
less `height:` above the baseline to `yoffset:` and `height:` above it.

The distances come from random numbers drawn from `seed:`, 0 unless given, by Erlang's `exsss`
algorithm, each panel drawing afresh from the seed, as Giggly's own jitter (`position:
:jitter`) draws them: each point in turn draws two, across and then up, a draw `u` from 0 to 1
becoming `-amount + 2 * amount * u`, as R's `runif()` scales one. R's own numbers are not
reproduced, so the same seed draws other points than R would, within the same bands. A
layer with no `datatype`, as a ridgeline's, is left as it is.

It is given to a density ridges layer's `position:`, alone or with its options, as
`position: {GigRidges.PointsJitter, height: 0.1, seed: 7}`.

# `t`

```elixir
@type t() :: %GigRidges.PointsJitter{
  adjust_vlines: boolean(),
  height: float(),
  seed: integer(),
  width: float(),
  yoffset: float()
}
```

---

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