| plot.tulpa_mesh | R Documentation |
Draws the mesh using base R graphics: edges as line segments, vertices as points. Optionally colors triangles by a quality metric.
## S3 method for class 'tulpa_mesh'
plot(
x,
color = NULL,
border = "grey50",
vertex_col = NULL,
vertex_cex = 0.5,
palette = grDevices::hcl.colors,
n_colors = 100L,
main = "tulpa_mesh",
...
)
x |
A |
color |
Optional per-triangle numeric vector to color triangles
(e.g., output of |
border |
Edge color. Default |
vertex_col |
Vertex point color. Default |
vertex_cex |
Vertex point size. Default 0.5. |
palette |
Color palette function for triangle fill. Default
|
n_colors |
Number of colors in palette. Default 100. |
main |
Plot title. |
... |
Additional arguments passed to |
The tulpa_mesh object x, returned invisibly. Called for
the side effect of producing a plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.