Displaying 2 results from an estimated 2 matches for "tritest".
Did you mean:
pritest
2006 Jul 19
2
voronoi tessellations
Okay, been working with tripack, seems the most mature package for this. Got it to work well with their test data set - data(tritest). When i tried random numbers to explore further, i am getting some results that don't reconcile.
example run this:
library(tripack)
y <- runif(100)
x <- runif(100)
vm <- voronoi.mosaic(x,y)
plot(vm)
par(new=T)
plot(x,y,col='blue')
when you look at the plot of the mosaic...
2010 Dec 16
0
Convert tileplot's trellis to shapefile/ Add values to voronoi polygon
...ke the
ones attached, and with the following commands:
xy=list(x=x2$X, y=x2$Y)
xy$street_cle <- x2$street_cle
tileplot(street_cle~ x*y, xy)
But this is a trellis. Is it possible to be converted to a shapefile or image so
I can plot it using spplot. I tried the following under tripack:
> tritest.vm <- voronoi.mosaic(x2$X,x2$Y)
> x2.vm <- voronoi.mosaic(x2$X,x2$Y)
> plot(x2.vm)
> x2.vp <- voronoi.polygons(x2.vm)
> plot(x2.vp)
The mosaic is fine but when I made it to voronoi polygon, it gives me a weird
plot just like the ones attached in this message. To add, this fu...