Maps can be tricky in R! There are many packages to choose from.
usmap
is compatible with ggplotmaps
is “Base R”- Some require API keys (e.g.,
ggmap
,tidycensus
) - Some are interactive (e.g.,
leaflet
) - Some provide utilities (e.g.,
tigris
) - Some deal with raster data (e.g.,
terra
)