library(gghighlight)
ggplot(mpg, aes(class, after_stat(count), fill = factor(cyl))) +
geom_bar() +
gghighlight(cyl >= 8, use_group_by = FALSE)
#> Error in `purrr::map()` at gghighlight/R/gghighlight.R:164:3:
#> ℹ In index: 1.
#> Caused by error in `dplyr::transmute()` at gghighlight/R/gghighlight.R:319:3:
#> ℹ In argument: `quasi_parallel(...)`.
#> Caused by error:
#> ! Input must be a vector, not a function.
Created on 2024-07-17 with reprex v2.1.0