getframe: Get Frame.

Description Usage Arguments Value Examples

View source: R/getframe.R

Description

Make a frame around the map.

Usage

1

Arguments

x

an sf object.

Value

an sf object.

Examples

1
2
3
4
5
library(sf)
us <- st_read(system.file("us.gpkg", package="mapextrud"))
f <- getframe(us)
plot(st_geometry(f))
plot(st_geometry(us), add = TRUE)

neocarto/mapextrud documentation built on April 10, 2020, 12:13 a.m.