I created a bar chart for a shiny app with: geom_col(position = "dodge2")+.
The purpose of "dodge2" component is to avoid stacking/putting behind each bars.
And instead having them next to each other. But, this approach does not work for me.
I was wondering if someone might have some hints of a way to avoid stacking bars?
Thank you for the help, @Z3tt! these are great examples.
I see that putting position = "dodge2" works when you group data.
Data I am working with has 2 columns and I create 2 geom_col to ggplot().
My example: