View source: R/geo_linestring.R
geo_linestring | R Documentation |
Random GeoJSON linestring
geo_linestring( count = 1, num_vertices = 10, max_length = 0.001, max_rotation = pi/8, bbox = NULL )
count |
(integer/numeric) number of Polygons. Default: 1 |
num_vertices |
(integer/numeric) how many coordinates each polygon will contain. Default: 10 |
max_length |
(integer/numeric) maximum distance that a vertex can be from its predecessor. Units are in degrees latitude (Approximately 69 miles or 111 km). Default: 0.001 (approximately 121 yards or 111 meters) |
max_rotation |
(integer/numeric) the maximum number of radians that a line segment can turn from the previous segment. Default: pi / 8 |
bbox |
(integer/numeric) lat/long bounding box for the starting point of
the line, numeric vector of the form |
GeoJSON; a list with one ore more Linestrings in a FeatureCollection,
with class geo_list
- simple unclass()
to remove the class
geo_linestring() geo_linestring(10) geo_linestring(bbox = c(50, 50, 60, 60))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.