R/map_sel_poly.R
map-sel-poly.RdClick the points that should be connected as polygon. Input ends with right click (see
grid::grid.locator()). Polygon will be drawn closed.
map.sel.poly(data, pch = 19, size = 0.3, ...) sel.poly(pch = 19, size = 0.3, ...)
| data | hyperSpec object for plotting map or list returned by |
|---|---|
| pch | symbol to display the points of the polygon for |
| size | size for polygon point symbol for |
| ... | further arguments for |
map.sel.poly: array of indices for points within the selected polygon
sel.poly: n x 2 matrix with the corner points of the polygon
map.sel.poly is a convenience wrapper for plotmap(), sel.poly,
and sp::point.in.polygon(). For custiomized plotting, the plot can be produced by
plotmap(), plotvoronoi() or levelplot(), and the result of
that plot command handed over to map.sel.poly, see the example below.
If even more customized plotting is required,sel.poly should be used (see example).
Claudia Beleites, Sebastian Mellor
Claudia Beleites