Locate points on a map
Returns the region names containing given locations.
map.where(database = "world", x, y, ...)
database |
character string naming a geographical database, or a list of
|
x |
vector of longitudes. |
y |
vector of latitudes. |
... |
Options for |
.
A list of character strings, naming the map region that each (longitude, latitude) pair falls into.
This function may give erroneous results if the database contains enclaves. For instance, a point in San Marino may also be identified as being in Italy.
Tom Minka
in.polygon
# NYC map.where("state", -73.8, 41) # Auckland map.where("nz", 174.6, -36.92) # find both in the world map.where(x = c(174.6, -73.8), y = c(-36.92, 41)) # with a map object: m = map("state", "new york", fill = TRUE, plot = FALSE) map.where(m, -73.8, 41)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.