
countryatlas: join World Bank data, country codes and maps on the ISO spine
Source:R/countryatlas-package.R
countryatlas-package.Rdcountryatlas exists to kill one recurring source of pain: country names
never line up across data sources. The package makes ISO codes the universal
join key and hands you a ready-to-map tibble that stitches together map
geometry (ggplot2::map_data() or Natural Earth sf), World Bank indicators
(WDI::WDI()) and the countrycode::countrycode() crosswalk.
Details
The happy path stays one call: world_data(). Everything else is opt-in.
Core data assembly
world_data(), country_data(), world_geometry(), locate_country().
The join engine
standardize_country(), join_world(), attach_geometry(), country_join(),
country_join_all().
Reference data
convert_country(), country_codes(), country_groups(), in_group(),
wdi_search(), and the datasets country_meta, common_indicators,
country_groups_tbl, world_snapshot, world_tiles.
Analysis helpers
per_capita(), aggregate_regions(), rank_countries(), complete_years(),
growth_rate(), index_to(), share_of_world().
Visualization
world_map(), globe_map(), spin_globe(), facet_map(), bubble_map(),
bivariate_map(), cartogram_map(), tile_map(), flow_map(),
animate_world(), interactive_map(), geom_country_labels(),
theme_world_map().