Description Format Details Note
The simplified version of the world map provided by Bjorn Sandvik, thematicmapping.org.
A SpatialPolygonsDataFrame
.
The map was imported in R as follows:
1 2 3 4 | require(maptools)
world.map.simplified <- readShapeSpatial("~/TM_WORLD_BORDERS_SIMPL-0.3/TM_WORLD_BORDERS_SIMPL-0.3.shp")
slot(world.map.simplified, 'data')[,'NAME'] <- iconv(slot(world.map.simplified, 'data')[,'NAME'], "latin1", "UTF-8")
save(world.map.simplified, file="data/world.map.simplified.rda")
|
The result is a SpatialPolygonsDataFrame
object. Its data slot contains a data frame with 246 observations and 11 variable:
FIPS. FIPS 10-4 Country Code
ISO2. ISO 3166-1 Alpha-2 Country Code
ISO3. ISO 3166-1 Alpha-3 Country Code
UN. ISO 3166-1 Numeric-3 Country Code
NAME. Name of country/area
AREA. Land area, FAO Statistics (2002)
POP2005. Population, World Polulation Prospects (2005)
REGION. Macro geographical (continental region), UN Statistics
SUBREGION. Geographical sub-region, UN Statistics
LON. Longitude
LAT. Latitude
Note from the TM_WORLD_BORDERS_SIMPL-0.3's README file:
Use this dataset with care, as several of the borders are disputed.
The original shapefile (world_borders.zip, 3.2 MB) was downloaded from the Mapping Hacks website: http://www.mappinghacks.com/data/. The dataset was derived by Schuyler Erle from public domain sources. Sean Gilles did some clean up and made some enhancements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.