Plots an fm_mesh_2d() object using standard graphics.
# S3 method for fm_mesh_2d
lines(x, ..., add = TRUE)# S3 method for fm_mesh_2d
plot(
x,
col = "white",
t.sub = seq_len(nrow(x$graph$tv)),
add = FALSE,
lwd = 1,
xlim = range(x$loc[, 1]),
ylim = range(x$loc[, 2]),
main = NULL,
size = 1,
draw.vertices = FALSE,
vertex.color = "black",
draw.edges = TRUE,
edge.color = rgb(0.3, 0.3, 0.3),
draw.segments = draw.edges,
rgl = deprecated(),
visibility = "front",
asp = 1,
axes = FALSE,
xlab = "",
ylab = "",
...
)
None
An fm_mesh_2d() object.
Further graphics parameters, interpreted by the respective plotting systems.
If TRUE, adds to the current plot instead of starting a
new one.
Color specification. A single named color, a vector of scalar
values, or a matrix of RGB values. Requires rgl=TRUE.
Optional triangle index subset to be drawn.
Line width for triangle edges.
X-axis limits.
Y-axis limits.
Deprecated.
argument cex for vertex points.
If TRUE, draw triangle vertices.
Color specification for all vertices.
If TRUE, draw triangle edges.
Color specification for all edges.
If TRUE, draw boundary and interior constraint
edges more prominently.
Deprecated
If "front" only display mesh faces with normal pointing towards the camera.
Aspect ratio for new plots. Default 1.
logical; whether axes should be drawn on the plot. Default FALSE.
character; labels for the axes.
Finn Lindgren Finn.Lindgren@gmail.com
plot.fm_segm(), plot_rgl.fm_mesh_2d()
mesh <- fm_rcdt_2d(globe = 10)
plot(mesh)
mesh <- fm_mesh_2d(cbind(0, 1), offset = c(1, 1.5), max.edge = 0.5)
plot(mesh)
Run the code above in your browser using DataLab