How to create thiessen polygons from points using R packages?

前端 未结 3 1109
名媛妹妹
名媛妹妹 2020-12-05 12:01

I have multiple sets of points (for different years ~20)

I want to generate thiessen polygons for each set of points using r spatial packages.

I know this c

3条回答
  •  孤城傲影
    2020-12-05 12:47

    Same principle as shown by jbaums, but simpler code:

    library(dismo)
    library(rgdal)
    cities <- shapefile(file.path(system.file("vectors", package = "rgdal")[1], "cities"))
    
    v <- voronoi(cities)
    plot(v)
    

提交回复
热议问题