What is a country ?

Andy South

2017-03-20

This vignette shows how rnaturalearth allows mapping countries using different definitions of what a country is. What a country is can be more complicated than you might expect.

For example, from my own parochial perspective, it allows mapping the UK as a whole or separating out England, Scotland, Wales and Northern Ireland. It also allows you to exclude far away places like the Falkland Islands, or not. Mapping France it allows the inclusion or exclusion of French Guiana and islands in the South Pacific.

rnaturalearth is an R package to hold and facilitate interaction with natural earth vector map data.

Natural Earth is a public domain map dataset including vector country boundaries.

This vignette uses sp::plot as a simple, quick way to plot the data obtained using rnaturalearth. rnaturalearth data can also be used to make more elaborate maps with ggplot2, tmap and other options.

load required packages

library(rnaturalearth)
library(sp)

Country types : countries, map_units and sovereignty.

Natural Earth data are classified by countries, map_units and sovereignty. Below you will see that specifying united kingdom for

countries gives the UK undivided

map_units gives England, Scotland, Wales and Northern Ireland

sovereignty includes the Falkland Islands

Filtering by geounit can give finer control, e.g. to plot Scotland alone, or France without French Guiana.