fmexample | R Documentation |
This is an example data set used for fmesher
package examples.
fmexample
The data is a list containing these elements:
loc
: A matrix
of points.
loc_sf
: An sfc
version of loc
.
loc_sp
: A SpatialPoints
version of loc
.
boundary_fm
: A fm_segm_list
of two fm_segm
objects used in the mesh construction.
boundary_sf
: An sfc
list version of boundary
.
boundary_sp
: An SpatialPolygons
list version of boundary
.
mesh
: An fm_mesh_2d()
object.
Generated by data-raw/fmexample.R
.
if (require(ggplot2, quietly = TRUE)) {
ggplot() +
geom_sf(data = fm_as_sfc(fmexample$mesh)) +
geom_sf(data = fmexample$boundary_sf[[1]], fill = "red", alpha = 0.5)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.