so I'm having issues with the order of my bars in my bar chart where I want all of the functional groups (fu5
) to be aligned beside each other, I've looked into levels and all other forms but I honestly can't figure out why they don't align with there groups.
Here is the code I used so far (I'm using RStudio, and a csv file uploaded to it):
ggplot(Ot, aes(x = sp5, y = o5, fill = fu5)) +
geom_col() +
theme(axis.text.x = element_text(angle = 60, hjust = 1))
Any help would be great.