how keep aesthetic mapping but remove a specific item from legend with ggplot

@mara: Oh and it looks like the breaks argument lets me use scale_fill_discrete() without having to specify the colors:

library(tidyverse)

tibble(column = letters[1:3]) %>% 
  ggplot(aes(column)) +
  geom_bar(aes(fill = column)) +
  scale_fill_discrete(breaks = c('a', 'b'))

Created on 2020-02-14 by the reprex package (v0.3.0)

1 Like