[R-SIG-Finance] [R-sig-finance] Problem on ploting of a zoo object

Bogaso bogaso.christofer at gmail.com
Thu Sep 24 21:18:07 CEST 2009


Hi,

Let say I have following codes

dat <- rnorm(100)
date1 <- 35886
dat2 <- zooreg(dat, as.Date(date1, origin="1900-01-01"), frequency=12)
index(dat2) <- format(index(dat2), "%m/%y")

However when I try to plot "dat2", I got following error :

> plot(dat2)
Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf

Can anyone please tell me how to get the plot?

Thanks,

-- 
View this message in context: http://www.nabble.com/Problem-on-ploting-of-a-zoo-object-tp25579310p25579310.html
Sent from the Rmetrics mailing list archive at Nabble.com.



More information about the R-SIG-Finance mailing list