Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_highlight should be counted on each facets when calculate_per_facet = TRUE #149

Open
yutannihilation opened this issue May 19, 2020 · 0 comments
Labels

Comments

@yutannihilation
Copy link
Owner

library(gghighlight)
#> Loading required package: ggplot2
library(tibble)

d <- tribble(
   ~x,  ~y,  ~f,
  "A",   1,  "a",  
  "B",   2,  "a",  
  "A",   3,  "b",  
  "B",   4,  "b"
)


ggplot(d, aes(x, y)) +
  geom_col() +
  facet_wrap(~ f) +
  gghighlight(y, calculate_per_facet = TRUE, max_highlight = 1)

Created on 2020-05-19 by the reprex package (v0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant