Motif Scale

motif_scale(tile, scale)

Arguments

tile

is sf object likes as output of motif function.

scale

numeric number that shape is scaled by it.

Value

sf object

Examples

library(ggplot2)
tile <- regularPolygon(3,sf = T)
scale_tile <- motif_scale(tile, 0.5)
#> Error: Problem with `mutate()` column `geometry`.
#>    `geometry = geometry * rep(shift, nrow(tile))`.
#>   x object 'shift' not found
#> Caused by error:
#>   object 'shift' not found
tilePlotter(tile)
#> Coordinate system already present. Adding new coordinate system, which will replace the existing one.

tilePlotter(rbind(tile, scale_tile))
#> Error in rbind(deparse.level, ...): object 'scale_tile' not found