rotate: Rotate basemap.

Description Usage Arguments Value Examples

View source: R/rotate.R

Description

Rotate sf basemap.

Usage

1
rotate(x, deg)

Arguments

x

an sf object.

deg

degree angle.

Value

an sf object.

Examples

1
2
3
4
library(sf)
us <- st_read(system.file("us.gpkg", package="mapextrud"))
us2 <-rotate(us, 180)
plot(st_geometry(us2))

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