Create a geom randomly
This function creates a random geometry
gs_random(type = "point", window = NULL, vertices = NULL)
type |
[ |
window |
[ |
vertices |
[ |
A geom
.
Other geometry shapes:
gs_line()
,
gs_point()
,
gs_polygon()
# create a random polygon with five vertices set.seed(1) someGeom <- gs_random(type = "polygon", vertices = 5) visualise(geom = someGeom) # in case template is given, this serves as source for the window extent visualise(geom = gs_random(), new = FALSE, linecol = "red")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.