Hi! I have been working on some grouped barplots using ggplot2 and had an issue with the order of the columns. The plot shows them in alphabetical order (August, July, June, May, September) instead of chronological order. Any idea on how to fix it? Here is my code and plot:
ggplot(aes(x=Date, y=Mean_PLWP, group=Species, fill=Species), data=MeanWaterPotDawnX)+
+ylim(0, 1) +
+labs(title = "Mean PLWP per month and species",
+x = "Month of measurement",
+y = "PLWP (MPa)")
Thanks a lot!