TriPlot | R Documentation |
This function plots a 2D triangulation.
TriPlot(V, Tr, col = 1, lwd = 1)
V |
an |
Tr |
a |
col |
A specification for the plotting color, defaulting to 1.
|
lwd |
The line width, a positive number, defaulting to 1. The interpretation is device-specific, and some devices do not implement line widths less than one. |
A triangulation plot of a 2D region.
# rectangular domain
bb=rbind(c(0,0),c(1,0),c(1,1),c(0,1))
VT=TriMesh(bb,2)
TriPlot(VT$V,VT$Tr)
# irregular domains
data("horseshoe")
VT=TriMesh(horseshoe,n=8)
TriPlot(VT$V,VT$Tr)
data('shape')
VT=TriMesh(shape,15)
TriPlot(VT$V,VT$Tr)
data('weird')
VT=TriMesh(weird,25)
TriPlot(VT$V,VT$Tr)
# region with holes
data("BMP")
VT=TriMesh(BMP$bound,25,list(as.matrix(BMP$H1),as.matrix(BMP$H2)))
TriPlot(VT$V,VT$Tr)
data("mymontreal")
VT=TriMesh(mymontreal$bound,25,list(mymontreal$H1,mymontreal$H2))
TriPlot(VT$V,VT$Tr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.