你好(在这里映射新手!)
我有一个很好的打猎,无法找到一个似乎是一个棘手问题的解决方案。
我有基本的XY(坐标)数据:我想做的是创造……
以下是开始使用的内容:
library(sf) library(dplyr) #create sf object with points stations <- st_as_sf( df, coords = c( "Long_dec", "Lat_dec" ) ) #create voronoi/thiessen polygons v <- stations %>% st_union() %>% st_voronoi() %>% st_collection_extract() library(leaflet) leaflet() %>% addTiles() %>% addCircleMarkers( data = stations ) %>% addPolygons( data = v )