I used the zoo package to create a monthly date sequence as follows:
x <- zooreg(1:144, start = as.yearmon("2003-1"), frequency = 12)
But now I do have the problem that when I create a plot (with base R), the date does not appear "right": The x-axis shows values from 1 to 144.
Let's say I create my plot like this:
library(zoo)
x <- zooreg(1:144, start = as.yearmon("2003-1"), frequency = 12)
y <- sample(1:1000, 144)
plot(x,y, type="n")
lines(x, y)
Best regards