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

Already on GitHub? Sign in to your account

position dodge fails to dodge all overlapping values #2106

Closed
hadley opened this Issue Apr 13, 2017 · 1 comment

Comments

Projects
None yet
2 participants
Owner

hadley commented Apr 13, 2017

library(tidyverse)
#> Loading tidyverse: ggplot2
#> Loading tidyverse: tibble
#> Loading tidyverse: tidyr
#> Loading tidyverse: readr
#> Loading tidyverse: purrr
#> Loading tidyverse: dplyr
#> Conflicts with tidy packages ----------------------------------------------
#> filter(): dplyr, stats
#> lag():    dplyr, stats

df <- tibble(
  x = c("a", "a", "b"),
  n = c(1, 5, 10)
)

ggplot(df, aes(1, n, fill = x)) + 
  geom_col(position = "dodge", alpha = 0.5)

Collaborator

karawoo commented Aug 1, 2017

Fixed in #2196

karawoo closed this Aug 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment