Draw a map with labeled regions
map, but labels the regions.
map.text(database, regions = ".", exact = FALSE, labels, cex = 0.75, add = FALSE, move = FALSE, ...)
character string naming a geographical database, or a list of
namesobtained from a previous call to
character vector that names the polygons to draw.
If 'TRUE', only exact matches with 'regions' are selected for drawing.
character vector of labels, one for each region selected. Defaults to the names in the database.
character expansion factor.
FALSE, a map is drawn, then labels placed on top. If
TRUE, labels are added to the existing map.
TRUE, labels are moved so that they don't overlap. Requires the
mininglibrary (not in CRAN, contact email@example.com).
Other arguments are the same as in
add = FALSE, a map is drawn by calling
Then the label for each region is placed at the centroid of the region
The return value is a map object, as from
map.text("world", "ira") # iran and iraq map.text("state", "penn") map.text("county", "penn") # Pennsylvania counties map.text("county", "new jersey") # New Jersey counties