360-info / country-centroids

Country centroids based on data from geoBoundaries.org. Useful for bubble maps and arc maps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Country centroids dataset

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.

Data

Two files are available:

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.

♻️ Use + Remix rights

Creative Commons Attribution 4.0

Please acknowledge both 360info and geoboundaries.org when you use it.

Dependencies

Dependency lockfile is generated using the {capsule} package:

list.files("R", pattern = glob2rx("*.r"), full.names = TRUE) |>
  capsule::capshot()

About

Country centroids based on data from geoBoundaries.org. Useful for bubble maps and arc maps.

License:Creative Commons Attribution 4.0 International


Languages

Language:R 100.0%