I have a dataset with Year and Month number that I am trying to plot against another variable, in this case "MEI". Here is a small sample of the data:
Year, Month, MEI,
1983, 5, 2.556,
1983, 6, 2.167,
1983, 7, 1.741,
1983, 8, 1.13,
1983, 9, 0.428,
1983, 10, 0.002,
1983, 11, -0.176,
1983, 12, -0.176,
1984, 1, -0.339,
1984, 2, -0.565,
Is there a way to make the x axis continuous over the years (Months-11,12,1,2). I tried:
plot(weather$Month, weather$MEI, main = 'Regression for MEI Each Month Over 16.5 Years',
xlab = 'Month (From May 1983 to December 2008', ylab = 'MEI')