Description Usage Arguments Value Note Examples
Get all hexagons in a k-ring around a given center
1 | k_ring(h3_index, ring_size = 1)
|
h3_index |
character vector representing H3 indexes |
ring_size |
number of rings |
character vector of H3 indexes; list of character vectors if multiple centers are supplied
The order of the hexagons is undefined.
1 2 3 4 5 6 7 | coords <- c(37.3615593, -122.0553238)
geo_to_h3(coords) %>%
k_ring() %>%
h3_to_geo_boundary() %>%
geo_boundary_to_sf() %>%
plot()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.