I have grouped some data by month and year and am now plotting it. Does anyone know how to sort the month and years to the right order in an automated way so that it will work on any set of month and years (i.e. not give the levels manually).
Example data
df <- data.frame(dates = c("01/2019", "02/2019", "07/2018", "09/2018", "10/2018", "11/2018", "12/2018"), values= c(0,1,2,3,4,5,6))