NEWS | R Documentation |
Fix match.map() for world map
Add some more island names to the world database
Updated a few web references in man pages.
MAJOR:
New 'world' database, taken from the public domain "Natural Earth" project. Many new countries have appeared since 1990. E.g. map(region="USSR")
will no longer work.
The old map is still available as 'legacy_world'. It is also possible (during a transition period) to switch completely to the old database by giving the command world.legacy(TRUE)
or even by setting the environment variable 'R_MAP_DATA_LEGACY=TRUE' prior to loading the package.
ADDITIONS:
data set iso3166
containing ISO-3166 country codes.
New functions iso.expand()
, sov.expand()
and iso.alpha()
that use this table for converting country names to ISO codes or back. Also expansion by sovereignty. Could be used e.g. for country labels.
SMALL CHANGES & FIXES
Internally now uses perl-style regular expressions. Useful for e.g. 'negative' regular expressions:
"Norway(?!:Svalbard)"
means Norway and all islands except Svalbard.
map(reg="(?!Belgium)",fill=TRUE,xlim=c(-10,20),ylim=c(40,60))
map.text(...,exact=TRUE) now behaves as documented. To get the old (non-documented) behaviour (plot map with exact=FALSE, write text for exact=TRUE) you could now use 2 commands:
map(...,exact=FALSE)
map.text(...,exact=TRUE,add=TRUE)
match.map had a potential bug with locale-dependent behaviour of order()
.