thomas-neitmann/ggcharts

Double x axis labels when sort = FALSE and horizontal = FALSE

Closed this issue · 0 comments

When calling bar_chart() with sort = FALSE and horizontal = FALSE each x axis label appears twice in the plot:

library(dplyr)
library(ggcharts)
data(biomedicalrevenue)

biomedicalrevenue %>%
  filter(company %in% c("Roche", "Novartis")) %>%
  bar_chart(year, revenue, facet = company, sort = FALSE, horizontal = FALSE)

image

When horizontal = TRUE this does not occur:

biomedicalrevenue %>%
  filter(company %in% c("Roche", "Novartis")) %>%
  bar_chart(year, revenue, facet = company, sort = FALSE, horizontal = FALSE)

image