lawn_flip | R Documentation |
Flip x,y to y,x, and vice versa
lawn_flip(input, lint = FALSE)
input |
data-Feature or data-FeatureCollection |
lint |
(logical) Lint or not. Uses geojsonhint. Takes up increasing
time as the object to get linted increases in size, so probably use by
default for small objects, but not for large if you know they are good
geojson objects. Default: |
A data-Feature or data-FeatureCollection
# a point serbia <- '{ "type": "Feature", "properties": {"color": "red"}, "geometry": { "type": "Point", "coordinates": [20.566406, 43.421008] } }' lawn_flip(serbia) # a featurecollection pts <- lawn_random("points") lawn_flip(pts) ## Not run: lawn_data$points_average %>% view lawn_flip(lawn_data$points_average) %>% view lawn_data$polygons_average %>% view lawn_flip(lawn_data$polygons_average) %>% view ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.