[R] plot() error-msg: "need finite xlim values"

Christoph Lehmann christoph.lehmann at gmx.ch
Wed May 28 11:49:43 CEST 2003


Hi
I try to plot a ROC curve, using the ROC library from bioonductor (using
the example in the help). Everything runs nicely except, that finally I
get the error: "Error in plot.window(xlim, ylim, log, asp, ...) :
        need finite xlim values"

---

> set.seed(123)
> state <- c(0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, + 1, 1,
1)
> markers <- c(1, 2, 1, 1, 2, 3, 3, 4, 2, 1, 1, 3, 2, 3, 2, 4, + 5, 2,
3, 4) + runif(20, -1, 1)
> roc1 <- rocdemo.sca(truth = state, data = markers, rule = dxrule.sca,
seqlen = 5)
> plot(roc1)
Error in plot.window(xlim, ylim, log, asp, ...) :
        need finite xlim values
In addition: Warning messages:
1: no finite arguments to min; returning Inf
2: no finite arguments to max; returning -Inf
3: no finite arguments to min; returning Inf
4: no finite arguments to max; returning -Inf


--
thanks for any help

christoph

-- 
Christoph Lehmann <christoph.lehmann at gmx.ch>




More information about the R-help mailing list