-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
The following code is supposed to display a spike at the density's mode, but that's apparently not the case.
data.frame(x = datasets::AirPassengers) |>
ggplot2::ggplot(ggplot2::aes(x = x)) +
ggdist::stat_slab(ggplot2::aes(height = max(ggplot2::after_stat(pdf)))) +
ggdist::stat_spike(
ggplot2::aes(height = max(ggplot2::after_stat(pdf))),
at = ggdist::Mode
)
Metadata
Metadata
Assignees
Labels
No labels