k_ring | R Documentation |
Get all hexagons in a k-ring around the given center.
k_ring(h3_index, radius = 1)
h3_index |
character vector of H3 indexes |
radius |
number of rings around the given center |
character vector of H3 indexes
The order of the hexagons is undefined.
road_safety_greater_manchester[1, ] %>% geo_to_h3() %>% k_ring() %>% h3_to_geo_boundary_sf() %>% sf::st_geometry() %>% plot(col = "blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.