infl {RGeoS}R Documentation

Influence weight

Description

Weight obtained as the polygon of influence

Usage

infl(db, nodes = NA, origin = NA, extend = NA, dmax = NA, polygon=NA,
        radix = NA, modify.target = TRUE, plot=FALSE, flag.grid=FALSE,...)

Arguments

db

The db-class on which the weight must be calculated

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 db-class is represented with a symbol proportional to the surface of influence.

flag.grid

When TRUE, the result is the discretized grid. Otherwise, it is the input Data db-class.

...

List of arguments that are passed to the plot function.

Value

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.


[Package RGeoS version 9.1.1 Index]