In our example you can check the order of the bars with levels(as.factor(df$group)). However, you reorder the bars in several ways: changing the limits with scale_x_discrete, modifying the levels order with factor or even using the reorder function. # install.packages("ggplot2") library...