plotDelaunay.tri | R Documentation |
Plots the scatter plot of Xp
points together
with the Delaunay triangles based on the Yp
points.
Both sets of points are of 2D.
See (\insertCiteokabe:2000,ceyhan:comp-geo-2010,sinclair:2016;textualpcds) for more on Delaunay triangulation and the corresponding algorithm.
plotDelaunay.tri(
Xp,
Yp,
main = NULL,
xlab = NULL,
ylab = NULL,
xlim = NULL,
ylim = NULL,
...
)
Xp |
A set of 2D points whose scatterplot is to be plotted. |
Yp |
A set of 2D points which constitute the vertices of the Delaunay triangles. |
main |
An overall title for the plot (default= |
xlab , ylab |
Titles for the |
xlim , ylim |
Two |
... |
Additional |
A scatterplot of Xp
points
and the Delaunay triangulation of Yp
points.
Elvan Ceyhan
plot.triSht
in interp
package
nx<-20; ny<-5; #try also nx<-40; ny<-10 or nx<-1000; ny<-10;
set.seed(1)
Xp<-cbind(runif(nx,0,1),runif(nx,0,1))
Yp<-cbind(runif(ny,0,.25),runif(ny,0,.25))+cbind(c(0,0,0.5,1,1),c(0,1,.5,0,1))
#try also Yp<-cbind(runif(ny,0,1),runif(ny,0,1))
plotDelaunay.tri(Xp,Yp,xlab="",ylab="",main="X points and Delaunay Triangulation of Y points")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.