I am plotting a monthly time series (dat1 which contains a column for cold) with a date on the x-axis. The date is defined as a monthly sequence:
seq(as.Date("1936/01/01"), as.Date("2013/01/01"), by="months")
When generating the plot using
g=ggplot(data=dat1, aes(x=date, y=cold))+ geom_line()+ scale_x_date()
I am getting dates on the x-axis as 1940, 1960, 1980, ... till 2000, I was wondering if I can get the dates every 10 years from 1940 to 2010 inclusive on the x-axis.
How to change the dates on the x-axis?