plot_rgl | R Documentation |
Plots a triangulation mesh using rgl
.
plot_rgl(x, ...)
lines_rgl(x, ..., add = TRUE)
## S3 method for class 'fm_segm'
lines_rgl(
x,
loc = NULL,
col = NULL,
colors = c("black", "blue", "red", "green"),
...,
add = TRUE
)
## S3 method for class 'fm_mesh_2d'
plot_rgl(
x,
col = "white",
color.axis = NULL,
color.n = 512,
color.palette = cm.colors,
color.truncate = FALSE,
alpha = NULL,
lwd = 1,
specular = "black",
draw.vertices = TRUE,
draw.edges = TRUE,
draw.faces = TRUE,
draw.segments = draw.edges,
size = 2,
edge.color = rgb(0.3, 0.3, 0.3),
t.sub = seq_len(nrow(x$graph$tv)),
visibility = "",
S = deprecated(),
add = FALSE,
...
)
## S3 method for class 'fm_segm'
plot_rgl(x, ..., add = FALSE)
## S3 method for class 'fm_segm_list'
plot_rgl(x, ...)
## S3 method for class 'fm_segm_list'
lines_rgl(x, ...)
x |
A |
... |
Additional parameters passed to and from other methods. |
add |
If |
loc |
Point locations to be used if |
col |
Segment color specification. |
colors |
Colors to cycle through if |
color.axis |
The min/max limit values for the color mapping. |
color.n |
The number of colors to use in the color palette. |
color.palette |
A color palette function. |
color.truncate |
If |
alpha |
Transparency/opaqueness values. See |
lwd |
Line width for edges. See |
specular |
Specular color. See |
draw.vertices |
If |
draw.edges |
If |
draw.faces |
If |
draw.segments |
If |
size |
Size for vertex points. |
edge.color |
Edge color specification. |
t.sub |
Optional triangle index subset to be drawn. |
visibility |
If "front" only display mesh faces with normal pointing towards the camera. |
S |
Deprecated. |
An rgl device identifier, invisibly.
Finn Lindgren finn.lindgren@gmail.com
plot.fm_mesh_2d()
if (interactive() && require("rgl")) {
mesh <- fm_rcdt_2d(globe = 10)
plot_rgl(mesh, col = mesh$loc[, 1])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.