I have created a map of Europe using a shape file downloaded from Eurostat. The file also includes several European administered areas such as French Guiana. I would like to exclude these areas. Is that possible?
Here is a picture of the map, and here is my r code:
require(readxl)
library(sf)
library(tmap)
library(tmaptools)
options(scipen = 999)
data1 <- read_excel("National Data.1-kopi.xlsx")
mydata <- subset(data1, TIME == 2007)
mymap <- st_read("NUTS_RG_20M_2021_3035.shp", stringsAsFactors = FALSE)
str(mymap)
map_and_data <- inner_join(mymap, mydata)
tm_shape(map_and_data) +
tm_polygons("POP25", id = "NUTS_ID", palette = "Blues")