Learn R Programming

GeoXp (version 1.6.2)

selectmap: 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

Value

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

Details

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

References

Thibault Laurent, Anne Ruiz-Gazen, Christine Thomas-Agnan (2012), GeoXp: An R Package for Exploratory Spatial Data Analysis. Journal of Statistical Software, 47(2), 1-23.