How to have separate columns for duplicate x-axis values in geom_col()?
问题 I have a dataframe as below (very simple structure) and I want to draw a column chart to show the amount for each date. The issue is that the date has duplicate entries (e.g., 2020-01-15 ). # A tibble: 5 x 2 date amount <date> <dbl> 1 2020-01-02 4000 2 2020-01-06 2568. 3 2020-01-15 2615. 4 2020-01-15 2565 5 2020-01-16 2640 When I try doing the following it somehow groups the similar dates together and draws a stacked column chart which is NOT what I want. df %>% ggplot(aes(x= factor(date), y