selectmap {GeoXp}R Documentation

Selection of a point or polygon on a scatterplot

Description

The function selectmap() is used to select a point or a polygon on the map or on a scatterplot. Called by any function which draws a scatterplot.

Usage

selectmap(var1, var2, obs, Xpoly, Ypoly, method = "")

Arguments

var1 a vector x of size n
var2 a vector y of size n
obs a boolean vector of size n : TRUE if a site is already selectioned, FALSE otherwise.
Xpoly X-coordinates of the vertices of selected polygon
Ypoly Y-coordinates of the vertices of selected polygon
method `point' if the selected area is a point; `poly' if the selected area is a polygon

Details

This function is called by all the functions which draw a scatterplot such as scattermap.r, moranplotmap.r,... This is not an interactive function.

Value

A vector of boolean of size n. TRUE if a site has been selected, FALSE otherwise.

Author(s)

Thomas-Agnan C., Aragon Y., Ruiz-Gazen A., Laurent T., Robidou L.

References

Aragon Yves, Perrin Olivier, Ruiz-Gazen Anne, Thomas-Agnan Christine (2009), Statistique et Econométrie pour données géoréférencées : modèles et études de cas


[Package GeoXp version 1.4 Index]