An R package to calculates the Delaunay triangulation and the Dirichlet or Voronoi tessellation of a planar point set.
Questions tagged [deldir]
10 questions
2
votes
1 answer
how can I extract the distances between the points after a Delaunay Triangulation with deldir in R?
I would like to calculate distances between cities using Delaunay Triangulations. I have the longitudes and latitudes of the twenty cities I would like to calculate distances between, but I have some trouble figuring out how to extract the distance…

Annemarie
- 689
- 6
- 14
- 28
1
vote
1 answer
Smooth 3D trangular mesh in R
I am drawing a 3D surface mesh of human face. Data can be found at https://github.com/Patricklv/Smoothing-3D-surface, where vb.xlsx contains vertices and it.xlsx contains faces.
My R code is as follows:
library(xlsx)
library(rgl)
vb <-…

Patrick
- 1,057
- 9
- 23
0
votes
0 answers
R deldir installation error: lzma decoder corrupt data
I have been attempting to install the R (4.1.0) package 'deldir' on a macos platform, i.e.
https://cran.r-project.org/web/packages/deldir/index.html
following
install.packages('deldir')
I get the following warning(s) - like the one below, but…

Max
- 487
- 5
- 19
0
votes
1 answer
Export x/y coordinates of Delaunay triangles vertices using deldir in R
How would I generate a data frame with the following data in R using deldir?
A row for each Delaunay triangle
The x1, y1, x2, y2, x3, y3 coordinates for the vertices of each triangle
I've gone through the Reference manual, but it only seems to…

Eric
- 1
0
votes
1 answer
How to plot tiles obtained from deldir tesselation using ggplot in R?
Now that ggvoronoi package is not working anymore in R, I am using deldir to plot voronoi cells clipped by the convex hull for a bunch of points in the following way:
library(deldir)
set.seed(1)
x <- runif(50)
y <- runif(50)
tesselation <-…

Pratik Mullick
- 55
- 6
0
votes
2 answers
ppp objects not working with deldir function
I am attempting to use deldir with a ppp object, but receive the following error:
Error: $ operator is invalid for atomic vectors
This does not work:
library(deldir)
library(spatstat)
points <- ppp(x=c(-77.308703, -77.256582, -77.290600, …

Bryan
- 1,771
- 4
- 17
- 30
0
votes
0 answers
How to del a directory using command line?
I'm using git bash in hyper terminal. By mistake, I did something and now the shell is showing this satement: ~ (master)
I want to remove the master branch. For which, I listed the hidden files using ls -a, now I want to remove this .git/ directory…

Kumari Anushka
- 1
- 1
0
votes
1 answer
Find elements that share a common Voronoi boundary
I am trying to find the 'nearest neighbors' for the Voronoi graph elements, in other words, the elements which share a common boundary. Is there an implemented way to do it in R. I tried follow the example from here…

Xlrv
- 469
- 1
- 6
- 16
0
votes
1 answer
Looping through groups with deldir() in R
I have inputted some data consisting of three columns, X,Y and Group.
I am looking to get the underling data for a voronoi diagram for each group.
By using
a=deldir(Test.data$X,Test.data$Y,rw=c(0,1,0,1))
I succesfully create the voronoi data for…

Benjamin Moss
- 43
- 4
0
votes
1 answer
R deldir and custom names instead of numbers
I'm trying to produce voronoi diagrams with R. The plotting of the diagrams itself is working fine, but I have a problem with labelling the different tiles of my plots.
The code I'm using is as follows:
data <- read.csv("data.csv", sep=",")
x <-…

Alex
- 13
- 2