SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
Issue with plot a xts hat has only 2 values [ Reply ]
By: Derek Foo on 2011-04-07 17:10
[forum:4236]
Hi,

It seems plot.xts has issue in dealing with time series that has 2 values or less.
It would complain the following:
Error in if (on == "years") { : missing value where TRUE/FALSE needed

Here is a way to reproduce the issue:
plot(xts(rep(1,2), seq(2) + Sys.time()))


Thanks,
Derek

Thanks to:
Vienna University of Economics and Business Powered By FusionForge