infl {RGeoS} | R Documentation |
Weight obtained as the polygon of influence
infl(db, nodes = NA, origin = NA, extend = NA, dmax = NA, polygon=NA, radix = NA, modify.target = TRUE, plot=FALSE, flag.grid=FALSE,...)
db |
The |
nodes |
Number of nodes of the discretization grid |
origin |
Origin of the discretization grid |
extend |
Extension of the discretization grid |
dmax |
Maximum distance between data and target |
polygon |
Polygon limitating the area where the Influence Polygons must be calculated |
radix |
Radix given to the output weight variable |
modify.target |
When TRUE, the newly created variable is designed as the current weight |
plot |
When TRUE, the result is shown graphically. Each node of the discretized grid is represented with the index of the closest sample. Each sample of the data |
flag.grid |
When TRUE, the result is the discretized grid. Otherwise, it is the input Data |
... |
List of arguments that are passed to the plot function. |
If flag.grid=FALSE, the input db-class
with a new variable containing the surface of the polygon of influence attached to each sample. If flag.grid=TRUE, the discretized grid db-class
with a new variable containing the index of the closest sample.