Learn R Programming

hyperSpec (version 0.98-20140523)

map.sel.poly: Interactively select a polygon (grid graphics) and highlight points

Description

Click the points that should be connected as polygon. Input ends with right click (see grid.locator). Polygon will be drawn closed. Wrapper for plotmap, sel.poly, and point.in.polygon.

Usage

map.sel.poly(data, pch = 19, size = 0.3, ...)

Arguments

data
hyperSpec object for plotting map
pch
symbol to display the points of the polygon for sel.poly
size
size for polygon point symbol for sel.poly
...
further arguments for grid.points and grid.lines

Value

  • array of indices for points within selected polygon

See Also

grid.locator, sel.poly, map.identify

Examples

Run this code
map.sel.poly (chondro)

Run the code above in your browser using DataLab