NEWS | R Documentation |
perl style regex caused problems for very long lists of regions. Fixed by setting perl=FALSE if the list of regions contains more than 1000 entries or the resulting regex is more than 30000 characters long.
A few minor corrections to country and city names.
Removed start-up message.
'world' database changed to version without lakes punched out at the borders. The previous version still had various issues, so this is much cleaner. Now 'interior=FALSE' actually works on the whole world map.“
Major lakes are now available from a separate database 'lakes'.
Basic support for 'SpatialPolygons' and 'SpatialLines' class objects as map database. Internally, maps()
calls new functions SpatialPolygons2map()
and SpatialLines2map()
which transform to the simple 'maps' format, but only the polygon names and coordinates themselves. All other information (holes, plotting order etc.) is ignored.
'world2' (the pacific centered map) now has clean cut polygons at the boundaries, so there are no more artefacts when e.g. fill=TRUE
.
map() now (silently) ignores thinning (resolution>0
) when drawing polygons in stead of polylines. This was already the case for list-based maps, but not for fill=TRUE
. The assymetric thinning caused artefacts. Plotting may be a bit slower now, noticably so for 'worldHires'. But usually you don't want to plot a complete world map at such a high resolution anyway.
wrap=TRUE
is no longer ignored when plot=FALSE
. Also, wrapping is now called before thinning, which should give slightly better results.
Technical:
removed $(AWK) macro from Makefile and added simple configuration script.
maps:::subgroup adapted to be much faster. Very noticable when selecting a large subset of polygons from a polygon database (not file-based).
Improved map.wrap()
for wrapping around the globe. The new version fixes some bugs, is a bit faster and also adds an option for maps not centered around 0.
World database rebuilt using mapMaker. Some corrections to polylines.
Added the lakes on country boundaries as new polygons. That way, the dissappear when plotting with map(..., fill=TRUE) and map(..., interior=FALSE).
Minor changes to man pages.
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()
.