rotate: rotate

View source: R/rotate.R

rotateR Documentation

rotate

Description

This function rotates simple features spatially by centroid or origin.

Usage

rotate(x, angle = c(0), origin = "centroid")

Arguments

x

An sf object, to be transformed in alignment; REQUIRED.

angle

Angle in degrees; default=0.

origin

Whether to use centroid or coordinates origin; default="centroid".

Value

An sf object containing one or more features

See Also

converge, align, normalize, scale, distribute


tcwilkinson/morphogram documentation built on Nov. 20, 2022, 3:45 a.m.