mesh_2_sf | R Documentation |
fmesher::fm_mesh_2d
into a sf
objectTransform a fmesher::fm_mesh_2d
into a sf
object
mesh_2_sf(mesh)
mesh |
A |
A simple features, sf
, object.
Modified from sp
based function suggested by Finn in the
R-inla discussion Google Group
https://groups.google.com/g/r-inla-discussion-group/c/z1n1exlZrKM.
meshmetrics
data(horse_mesh, package = "stelfi")
sf <- mesh_2_sf(horse_mesh)
if(require("ggplot2")) {
ggplot(sf) + geom_sf()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.