ggobi/cranvas — Issue #158: large data crashes SearchTrees
Author: yihui
Created: 2012-02-22 04:05:37+00:00
State: open
Labels: todo

```r
library(SearchTrees)
n = 1e5
x = rnorm(n)
y = rnorm(n)
x2 = x + runif(n, .5, 2)
y2 = y + runif(n, .5, 2)
dat2 = cbind(x, y, x2, y2)
tree = createTree(dat2)
inrect = rectLookup(tree, xlim = c(0,1), ylim=c(0, 1))
col = rgb(0, 1, 0, alpha=.5)
plot(x, y, col="white")
rect(x[inrect], y[inrect], x2[inrect], y2[inrect], col=col)
rect(0, 0, 1, 1, col="blue", lwd=3)
```

have reported to Gabe.