geo_random | R Documentation |
geom
randomlyThis function creates a random geometry
geo_random(type = "point", window = NULL, vertices = NULL)
type |
character(1) |
window |
data.frame(2) |
vertices |
integerish(1) |
A geom
.
Other geometry shapes:
geo_line()
,
geo_point()
,
geo_polygon()
# create a random polygon with five vertices
set.seed(1)
someGeom <- geo_random(type = "polygon", vertices = 5)
geo_vis(geom = someGeom, linecol = "#FFB000")
# in case template is given, this serves as source for the window extent
geo_vis(geom = geo_random(), linecol = "#B24223", pointsymbol = 22, new = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.