pointsToPointsTess | R Documentation |
The function can be considered as a special case of the scenario "b" tested by the
'pointsInPolygons()' function provided by this same package, with the exception that in this case
the polygons are not entered by the user but are internally created by the function around the
to-feature.
pointsToPointsTess(from.feat, to.feat, cex.text = 0.7)
from.feat |
Feature (of point type; SpatialPointsDataFrame) whose spatial association with to-feature has to be assessed. |
to.feat |
Feature (of point type; SpatialPointsDataFrame) in relation to which the spatial association of the from-feature has to be assessed. |
cex.text |
Modify the size of the labels in the returned plot. |
The question this function may allow to address is: do the points belonging to a feature dataset
tend to occur close to any of the points in another feature dataset than expected if the points
would be randomly scattered across the study area? To help addressing this question, the function
creates Thiessen polygons around the input 'to.feature' and then runs the 'pointsInPolygons()'
function using its 'scenario b'.
For further details, see the help documentation of the
'pointsInPolygons()' function.
pointsInPolygons
data(locations) data(events) result <- pointsToPointsTess(events, locations) data(deaths) data(pumps) result <- pointsToPointsTess(deaths, pumps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.