identify.map.RdIdentifies the map regions clicked by the user.
# S3 method for class 'map'
identify(x, n = 1, index = FALSE, ...)a map object containing named polygons.
the number of clicks to wait for.
If TRUE, returns the index of the polygon, rather than its name.
additional arguments passed to identify.default.
The current algorithm is somewhat crude — selects the region whose
centroid is closest to the click. A more sophisticated approach would
use map.where.
a character vector of length n, naming the selected regions.