[R] Voronoi-Diagrams in R
Boris Steipe
boris.steipe at utoronto.ca
Wed May 14 16:25:16 CEST 2014
Try:
install.packages("deldir")
library(deldir)
?deldir
set.seed(16180)
x <- runif(20); y <- runif(20); window <- c(0,1,0,1)
tess <- deldir(x, y, rw = window)
plot.deldir(tess, wpoints="real", wlines="tess")
Cheers,
Boris
On 2014-05-14, at 8:18 AM, Raphael Päbst wrote:
> Hello everyone!
> I have returned to R after a longish break and am currently working on
> a project where I need Delaunay-Triangulations and Voronoi-Diagrams.
> If I understood it correctly, the Geometry-Package only offers
> functions for the Delaunay-Triangulation at the moment. Is this
> correct and if so, what would be the best way to get Voronoi-Diagrams
> as well?
>
> Many Thanks in advance!
>
> Raphael
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list