motif_rotation: Motif Rotation

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Motif Rotation

Usage

1
motif_rotation(tile, theta, center = c(0, 0))

Arguments

tile

is sf object likes as output of motif function.

theta

the angle of rotation.

center

the center of rotation. it is 2-D vector like c(0,0).

Value

sf object

Examples

1
2
3
4
5
library(ggplot2)
tile <- motif(polyLine = T, drawBox = T)
tile_30 <- motif_rotation(tile,30,center = c(0,1))
tilePlotter(tile)
tilePlotter(rbind(tile,tile_30))

Ehyaei/Kaashi documentation built on Dec. 17, 2021, 6:23 p.m.