I have a data frame with one of the columns given as time. The time column is as a result of simulations from ODE system of equations. I want to convert the time column to months of the year.
df <- data.frame(time = c(1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100),
population = c(100, 200, 250, 320, 410, 400, 380, 365, 300, 275, 215))
ggplot(df, aes(x=time, y=population))+
geom_line()
This produces a time series plot with time in the x-axis as numbers from 1 to 100. I want this time to be changed to months starting from January.