Package 'mapdata'

Title: Extra Map Databases
Description: Supplement to maps package, providing some larger and/or higher-resolution databases. NOTE: this is a legacy package. The world map is out-dated.
Authors: Original S code by Richard A. Becker and Allan R. Wilks. R version by Ray Brownrigg <[email protected]>.
Maintainer: Alex Deckmyn <[email protected]>
License: GPL-2
Version: 2.3.1
Built: 2025-01-31 04:23:34 UTC
Source: https://github.com/cran/mapdata

Help Index


China Map

Description

This database produces a map of China, including provincial boundaries.

Format

The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAPDATA_DATA_DIR for the datasets in the mapdata package) is set at package load time.

References

Richard A. Becker, and Allan R. Wilks, "Maps in S", AT&T Bell Laboratories Statistics Research Report [93.2], 1993.

Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical Database", AT&T Bell Laboratories Statistics Research Report [95.2], 1995.

See Also

map, world

Examples

map('china')

Japan Map

Description

This database produces a map of Japan, including prefecture boundaries.

Format

The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAPDATA_DATA_DIR for the datasets in the mapdata package) is set at package load time.

Source

Thanks to Ritei Shibata of Keio University for the formatted data.

References

Richard A. Becker, and Allan R. Wilks, "Maps in S", AT&T Bell Laboratories Statistics Research Report [93.2], 1993.

Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical Database", AT&T Bell Laboratories Statistics Research Report [95.2], 1995.

See Also

map, world

Examples

map('japan')

New Zealand Map

Description

This database produces a high-resolution map of New Zealand. The database includes Pacific and sub-antartic island dependencies also.

Format

The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAPDATA_DATA_DIR for the datasets in the mapdata package) is set at package load time.

References

Richard A. Becker, and Allan R. Wilks, "Maps in S", AT&T Bell Laboratories Statistics Research Report [93.2], 1993.

Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical Database", AT&T Bell Laboratories Statistics Research Report [95.2], 1995.

See Also

map, world, nz

Examples

map('nzHires')

World Rivers Map Database

Description

This database produces major rivers (and some lakes) which may be used to add to an existing map. Unfortunately, there is no fine control over which rivers are plotted, so all rivers which lie within the boundaries of the current plot on display will be added. Some of these may be outside the boundaries of the map shown.

Format

The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAPDATA_DATA_DIR for the datasets in the mapdata package) is set at package load time.

References

Richard A. Becker, and Allan R. Wilks, "Maps in S", AT&T Bell Laboratories Statistics Research Report [93.2], 1993.

Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical Database", AT&T Bell Laboratories Statistics Research Report [95.2], 1995.

See Also

map, world

Examples

map('usa')
map('rivers', add=TRUE)

Pacific Centric World Map

Description

This world database comes from a cleaned-up version of the CIA World Data Bank II data and contains approximately 2 million points representing the world coastlines and national boundaries. This map is based on latitudes [0, 360), which then has the Pacific Ocean in the centre of the map.

Usage

data(world2HiresMapEnv)
data(world2LoresMapEnv)

Format

The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAPDATA_DATA_DIR for the datasets in the mapdata package) is set at package load time.

Source

The CIA World Data Bank II is currently available from https://www.evl.uic.edu/pape/data/WDB/.

References

Richard A. Becker, and Allan R. Wilks, "Maps in S", AT&T Bell Laboratories Statistics Research Report [93.2], 1993.

Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical Database", AT&T Bell Laboratories Statistics Research Report [95.2], 1995.

See Also

map, world, worldHires, world2

Examples

map('world2Hires', xlim=c(100, 300))

World Map

Description

This (legacy) world database comes from a cleaned-up version of the CIA World Data Bank II data and contains approximately 2 million points representing the world coastlines and national boundaries. This makes it suitable for extracting countries, continents, etc. while still retaining lots of detail.

The ‘world2’ database is a modified version of the ‘world’ database in which the longitude ranges from 0 through 360 degrees, instead of -180 through 180. This then allows maps of the whole Pacific Ocean for example.

worldLores contains exactly the same polygon information, but the boundaries have been reduced to a very low resolution.

Format

The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAPDATA_DATA_DIR for the datasets in the mapdata package) is set at package load time.

Note

This database was compiled in the 1990's and does not reflect more recent political changes. It is maintained mainly for historical purposes and legacy code. The data in maps::world on in packages like rnaturalearth is much more up to date.

Source

The CIA World Data Bank II is currently (mid-2017) still available from https://www.evl.uic.edu/pape/data/WDB/.

References

Richard A. Becker, and Allan R. Wilks, "Maps in S", AT&T Bell Laboratories Statistics Research Report [93.2], 1993.

Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical Database", AT&T Bell Laboratories Statistics Research Report [95.2], 1995.

See Also

map, world

Examples

map('worldHires', col=1:10)
map('worldHires', 'Switzerland')
title('Switzerland')