Problem w/ order of individual dodged bars within ggplot2

I have been trying to make a dodged bar chart. And seemingly there is a problem with the order of putting the bars side by side. For all of the individual elements of the x-axis (discrete observations), the grey bar is on right, except for one where the value of the grey bar is less than the value asssociated with the red bar. This does not seem to be associated with the levels of the factor used for the filling the objects because that only seems to flip of the bar sides and only reverse the issue without solving it. So, any ideas of how to control the order of the dodged bars (or stacked bars - since I seem to have the same issue with that too)?
thnx all.

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.