Plots a triangulation mesh using rgl
.
plot_rgl(x, ...)lines_rgl(x, ..., add = TRUE)
# S3 method for fm_segm
lines_rgl(
x,
loc = NULL,
col = NULL,
colors = c("black", "blue", "red", "green"),
...,
add = TRUE
)
# S3 method for 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 fm_segm
plot_rgl(x, ..., add = FALSE)
# S3 method for fm_segm_list
plot_rgl(x, ...)
# S3 method for fm_segm_list
lines_rgl(x, ...)
An rgl device identifier, invisibly.
A fm_mesh_2d()
object
Additional parameters passed to and from other methods.
If TRUE
, adds to the current plot instead of starting a
new one.
Point locations to be used if x$loc
is NULL
.
Segment color specification.
Colors to cycle through if col
is NULL
.
The min/max limit values for the color mapping.
The number of colors to use in the color palette.
A color palette function.
If TRUE
, truncate the colors at the color axis
limits.
Transparency/opaqueness values. See rgl.material
.
Line width for edges. See rgl.material
.
Specular color. See rgl.material
.
If TRUE
, draw triangle vertices.
If TRUE
, draw triangle edges.
If TRUE
, draw triangles.
If TRUE
, draw boundary and interior constraint
edges more prominently.
Size for vertex points.
Edge color specification.
Optional triangle index subset to be drawn.
If "front" only display mesh faces with normal pointing towards the camera.
Deprecated.
Finn Lindgren finn.lindgren@gmail.com
plot.fm_mesh_2d()
# \donttest{
if (interactive() && require("rgl")) {
mesh <- fm_rcdt_2d(globe = 10)
plot_rgl(mesh, col = mesh$loc[, 1])
}
# }
Run the code above in your browser using DataLab