You are viewing a single comment's thread.

view the rest of the comments →

sgx191316 ago

I haven't done R since college, so this may be clunkier than it needs to be, but you can give your X axis more definition like so:

> plot(as.POSIXct(data[[1]],origin='1970-01-01'),data[[2]],type="b",axes=FALSE,xlab="Date",ylab="CCP")
> axis.POSIXct(1,at=seq(as.POSIXct(data[[1]][1],origin="1970-01-01"),as.POSIXct(max(data[[1]]),origin="1970-01-01"),"days"))
> axis(2)
> box()