R tricks >

Quickly visualize an sf object

library(mapview)
library(rnaturalearth)

world <- ne_countries(scale = "medium", returnclass = "sf")
mapview(world, zcol = "income_grp")

mapview