Create Regular Polygon

regularPolygon(n, sf = F)

Arguments

n

number of sides

sf

if TRUE the sf polygon object was returned.

Value

matrix of points or sf polygon.

Examples

regularPolygon(5) %>% plot()

regularPolygon(5,TRUE) %>% tilePlotter()
#> Coordinate system already present. Adding new coordinate system, which will replace the existing one.