Description Usage Format Source Examples
Gives the latitude and longitude for many countries. A single point — the centroid of the country's boundaries — is given. Countries are identified by English name and by the ISO A3 code.
1 | data("CountryCentroids")
|
A data frame with 241 observations on the following 4 variables.
name
country name in English, e.g. Afghanistan
Aland
Albania
Algeria
Yemen
Zambia
Zimbabwe
iso_a3
The ISO A3 code for the country, e.g. s -99
ABW
AFG
AGO
YEM
ZAF
ZMB
ZWE
long
Longitude in degrees
lat
Latitude in degrees
The centroids were derived from country boundary map data as the medians of the boundary points latitude and longitude.
1 2 | data(CountryCentroids)
plot(lat ~ long, data=CountryCentroids)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.