I have the following data:
x=strptime(20010101:20010110) y=1:10 z=data.frame(x,y)
So my data is this:
x y 1 2
I'm not familiar with the intricacies of the base plots. But, ggplot does this effectively.
x <- strptime(20010101:20010110, format='%Y%m%d') y <- 1:10 z <- data.frame(x, y) qplot(x,y,data=z,'point')