I am trying to plot a line chart using ggplot but I can't seem to get the months in the x-axis in chronological order instead of alphabetical. Any help is greatly appreciated. This is my current code:
df <- data.frame(Months=c("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November","December"),
Attacks=c(49, 70, 49, 44, 53, 35, 33, 36, 47, 40, 44, 32))
ggplot(data=df, aes(x=Months, y=Attacks, group=1)) +
geom_line()+
geom_point()