# stat_density works in both directions

    Problem while computing stat.
    i Error occurred in the 1st layer.
    Caused by error in `setup_params()`:
    ! `stat_density()` requires an x or y aesthetic.

# precompute_bandwidth() errors appropriately

    `bw` must be one of "nrd0", "nrd", "ucv", "bcv", "sj", "sj-ste", or "sj-dpi", not "foobar".

---

    `bw` must be a finite, positive number, not `Inf`.

