Usage
geoidentify(lat, lon = NULL, labels = 1, n = 0, plot = TRUE, atpen = TRUE, offset = 0.5, col = 1, cex = 1)
Arguments
lat,lon
Coordinates of points. The coordinates can be given by two
vectors or a data.frame containin vectors lat
and lon
.
labels
Vector giving labels for each of the points. If supplied,
this must have the same length as lat and lon. As a default the vector
indece number of the points will be used.
n
Maximum number of points to be identified.
plot
If true, geoidentify plots the labels if the points identified.
atpen
If true, plotted identification is relative to locator position
when the point is identified; otherwise, plotting is relative to the
identified lat,lon value. This can be useful when points are crowded.
Default is true.
offset
Identification is plotted as a text string, moved offset
charecter from the point. If the locator was left (right) of the nearest
point, the label will be offset to the left (right) of the point.
col
The color of the labels.
cex
Character size expansion of label characters.