Country centroids based on the geoBoundaries.org ADM0 boundaries.
If you need to make a map where countries are represented by points (like a bubble map or an arc map), you'll want centroids!
This dataset is updated on the first of the month if new data is available, or otherwise when run manually.
Two files are available:
data/centroids-oflargestpoly.csv
: centroids of countries using the largest polygondata/centroids.csv
: centroids of countries using all polygons
If you don't want centroids that might be in the water for countries with several landmasses (like, say, Indonesia), use the former. Otherwise, use the latter.
Tip
Note that some non-country territories might be missing from this dataset. See data/README.md
for more details.
Please acknowledge both 360info and geoboundaries.org when you use it.
Dependency lockfile is generated using the {capsule}
package:
list.files("R", pattern = glob2rx("*.r"), full.names = TRUE) |>
capsule::capshot()