Description Usage Arguments Value Examples
View source: R/tpolygonsByBorder.R
Generation of Thiessen polygons by spatial points
1 | voronoipolygons2(x, poly)
|
x |
Spatial point object, data format: |
poly |
The border polygons object to limit the Thiessen polygons. Data format: |
The spatial polygongs objects. Data format: SpatialPolygonsDataFrame
1 2 3 4 5 6 7 8 9 | data("samplepnt","prnside")
x=samplepnt
sidepoly=prnside
prjinf=sp::proj4string(x)
sidepoly_p=sp::spTransform(sidepoly,prjinf)
extBnd=as(raster::extent(sidepoly_p), 'SpatialPolygons')
sp::proj4string(extBnd)=prjinf
pzn.coords=voronoipolygons2(x,extBnd)
sp::proj4string(pzn.coords)=prjinf
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.