selectmap {GeoXp} | R Documentation |
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.
selectmap(var1, var2, obs, Xpoly, Ypoly, method = "")
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 |
This function is called by all the functions which draw a scatterplot such as scattermap.r, moranplotmap.r,... This is not an interactive function.
A vector of boolean of size n. TRUE if a site has been selected, FALSE otherwise.
Thomas-Agnan C., Aragon Y., Ruiz-Gazen A., Laurent T., Robidou L.
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