The category label on the right side doesn't follow the numerical order. My code is as following:
ggplot(dat3, aes(variable, value, fill = AnnualCompensation, color = AnnualCompensation)) +
geom_bar(stat = "identity", position = "dodge") +
scale_y_continuous(name = "Number of Workers", labels = comma)
How can I reorder the category on the right side and make the bars in the chart follow the order AnnualCompensation?