There is a subregion
column available.
unique(UK$subregion)
# [1] "Isle of Wight" "Wales" "Northern Ireland" "Scotland" "Great Britain"
If you only want Northern Ireland you can adapt your code to...
NI <- map_data("world") %>%
filter(region == "UK" & subregion == "Northern Ireland")
head(NI)
# long lat group order region subregion
# 1 -6.218018 54.08872 572 40086 UK Northern Ireland
# 2 -6.303662 54.09487 572 40087 UK Northern Ireland
# 3 -6.363672 54.07710 572 40088 UK Northern Ireland
# 4 -6.402588 54.06064 572 40089 UK Northern Ireland
# 5 -6.440284 54.06363 572 40090 UK Northern Ireland
# 6 -6.548145 54.05728 572 40091 UK Northern Ireland
Then a basic plot...
ggplot(NI, aes(x = long, y = lat)) +
geom_polygon() +
coord_map() +
ggthemes::theme_map()
To produce...
