powered by
fm_mesh_2d
Extracts the vertices of an fm_mesh_2d object.
fm_vertices(x, format = NULL)
An sf, data.frame, or SpatialPointsDataFrame object, with the vertex coordinates, and a .vertex column with the vertex indices.
sf
data.frame
SpatialPointsDataFrame
.vertex
An fm_mesh_2d object.
character; "sf", "df", "sp"
"sf"
"df"
"sp"
Finn Lindgren finn.lindgren@gmail.com
fm_centroids()
if (require("ggplot2", quietly = TRUE)) { vrt <- fm_vertices(fmexample$mesh, format = "sf") ggplot() + geom_sf(data = fm_as_sfc(fmexample$mesh)) + geom_sf(data = vrt, color = "red") }
Run the code above in your browser using DataLab