Closed fkohrt closed 6 months ago
The following code using currying / automatic partial function application does not run, but produces a warning message:
faithful |> ggplot2::ggplot(ggplot2::aes(x = eruptions)) + ggdist::stat_dotsinterval( point_interval = ggdist::point_interval( .interval = ggdist::qi ) )
Warning message: Computation failed in `stat_dotsinterval()`. Caused by error in `length(col_exprs) == 1 && .simple_names`: ! invalid 'y' type in 'x && y'
Only using purrr::partial() works:
purrr::partial()
faithful |> ggplot2::ggplot(ggplot2::aes(x = eruptions)) + ggdist::stat_dotsinterval( point_interval = purrr::partial( ggdist::point_interval, .interval = ggdist::qi ) )
Thanks --- this was an issue with how point_interval(<distribution>) does non-standard evaluation, fix incoming.
point_interval(<distribution>)
Awesome, thank you! Love this package :)
The following code using currying / automatic partial function application does not run, but produces a warning message:
Only using
purrr::partial()
works: