# `Macaw.Frame.Transforms.Density`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/transforms/density.ex#L1)

The `density_2d` step (spec/04 §7.2, spec/05 §5.3): a two-dimensional kernel density estimate of the
pixel points `fields: [x, y]` over the plot (or `size`), contoured, by
`Macaw.Draw.Contour.Density` (`needs: [:frame]`). `field` weights each point (`1`
without, and for a `nil` reading); `bandwidth` (`20`) is the kernel's standard deviation
in pixels, `thresholds` (`20`) a count or a list of density values, `cell` (`4`) the
grid's cell in pixels. A row with a `nil` or non-numeric coordinate is dropped. One row
per ring of every threshold, its `value` and closed `path`.

This is spatial work, where points land on the plot. The density of values along one
axis (a violin, a ridgeline) is `macaw_data`'s `density`, not this: the two names never
collide in one registry (#56).

# `phrase`

```elixir
@spec phrase() :: String.t()
```

What the frame is called when a data layer's rows are laid out by this step (spec/11 §2.2).

---

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