selectmap: Selection of a point or polygon on a scatterplot

View source: R/selectmap.R

selectmapR 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, moranplotmap,... 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

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.


tibo31/GeoXp documentation built on April 8, 2023, 7:50 a.m.