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")