| fmexample {fmesher} | R Documentation |
Example mesh data
Description
This is an example data set used for fmesher package examples.
Usage
fmexample
Format
The data is a list containing these elements:
loc:A
matrixof points.loc_sf:An
sfcversion ofloc.loc_sp:A
SpatialPointsversion ofloc.boundary_fm:A
fm_segm_listof twofm_segmobjects used in the mesh construction.boundary_sf:An
sfclist version ofboundary.boundary_sp:An
SpatialPolygonslist version ofboundary.mesh:An
fm_mesh_2d()object.
Source
Generated by data-raw/fmexample.R.
Examples
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)
}
[Package fmesher version 0.1.7 Index]