Description Usage Arguments Value See Also Examples
Create a point
1 | lawn_point(coordinates, properties = NULL)
|
coordinates |
A pair of points in a vector, list or json, of the form
|
properties |
A list of properties. Default: NULL |
A data-Feature<(data-Point)>
Other data functions:
lawn_featurecollection()
,
lawn_feature()
,
lawn_filter()
,
lawn_geometrycollection()
,
lawn_linestring()
,
lawn_multilinestring()
,
lawn_multipoint()
,
lawn_multipolygon()
,
lawn_polygon()
,
lawn_random()
,
lawn_remove()
,
lawn_sample()
1 2 3 4 5 6 7 | lawn_point(c(-74.5, 40))
lawn_point(list(-74.5, 40))
lawn_point('[-74.5, 40]')
lawn_point(c(-74.5, 40), properties = list(name = 'poly1', population = 400))
# Make a FeatureCollection
lawn_featurecollection(lawn_point(c(-74.5, 40)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.