Skip to content

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

@yutannihilation

Description

@yutannihilation
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions