Learn R Programming

mapsf (version 1.0.0)

mf_get_borders: Get a border layer from polygons

Description

This function extracts borders between contiguous polygons.

Usage

mf_get_borders(x)

Value

An sf object (MULTILINESTRING) of borders is returned.

Arguments

x

an sf object of POLYGONS, using a projected CRS

Examples

Run this code
mtq <- mf_get_mtq()
mtq_b <- mf_get_borders(mtq)
mf_map(mtq)
mf_map(mtq_b, col = 1:5, lwd = 4, add = TRUE)

Run the code above in your browser using DataLab