[This article was first published on pacha.dev/blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't. Because of delays with my scholarship payment, if this post is useful to you I kindly ask a minimal donation on Buy Me a Coffee. It shall be used to continue my Open Source efforts. The full explanation is here: A Personal Message from an Open Source Contributor. If you need an R package or Shiny dashboard for your team, you can email me or inquiry on Fiverr.I got this question: How can you plot a map of the UK with ggplot2?The answer is that you need to read a GeoJSON or equivalent file with the sf package and then use the geom_sf() function from ggplot2.My apologies if my online search wasn’t good but all search engines in Canada became worse after Bill C-18 was passed. I found this maintained by Martin Chorley, I thought the data reading could be simplified, and so I started a small data package.You can install the development version of ukmaps like so to install v0.0.1:remotes::install_github("pachadotdev/ukmaps")And here is a simple example of how to use it with dplyr and ggplot2:library(ukmaps)library(dplyr)library(ggplot2)london_areas % mutate(is_london = if_else(area_name %in% london_areas, "Yes", "No"))pal