View source: R/mf_get_borders.R
mf_get_borders | R Documentation |
This function extracts borders between contiguous polygons.
mf_get_borders(x)
x |
an sf object of POLYGONS, using a projected CRS |
An sf object (MULTILINESTRING) of borders is returned.
If the polygon layer contains topology errors (such as contiguous
polygons not sharing exactly the same boundary) the function may not return
all boundaries correctly. It is possible to use st_snap()
or other
functions to try and correct these errors.
mtq <- mf_get_mtq()
mtq_b <- mf_get_borders(mtq)
mf_map(mtq)
mf_map(mtq_b, col = 1:5, lwd = 4, add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.