Learn R Programming

sptemExp (version 0.1.4)

tpolygonsByBorder: tpolygonsByBorder for Generation of Thiessen polygons

Description

Generate Thiessen polygons according to the point spatialframes and border.

Usage

tpolygonsByBorder(x,sidepoly)

Arguments

x

SpatialPointsDataFrame "SpatialPointsDataFrame".

sidepoly

SpatialPolygonsDataFrame, e.g. SpatialPolygonsDataFrame.

Value

A list object:

tpolys

Thiessen polygons, data format: SpatialPolygonsDataFrame

bnd

BND object used in the model in the BayesX.

Examples

Run this code
# NOT RUN {
data("samplepnt","prnside")
x=samplepnt
sidepoly=prnside
tpoly=tpolygonsByBorder(x,sidepoly)$tpolys
raster::plot(tpoly)
# }

Run the code above in your browser using DataLab