I am trying to plot an xts object but I get an error about years.. The xts object just has a numerical value and a POSIXct index. Below is the code that shows the xts and the error when trying plot. Any ideas on what needs to be done to a xts object to properly plot?
xTest<-as.xts(35, Sys.time())
xTest
## [,1]
## 2013-04-07 18:19:19.37238 35
class(xTest)
## [1] "xts" "zoo"
class(index(xTest))
## [1] "POSIXct" "POSIXt"
plot(xTest)
## Error in if (on == "years") { : missing value where TRUE/FALSE needed