我有我的研究区域“吉尔吉特巴尔蒂斯坦”的 shapefile。我想在地图上绘制地区名称(shapefile)
使用此代码,我可以绘制研究区域地图。如何在这张地图上显示地区名称?
library(mapdata)
library(prettymapr)
library(ggplot2) # For map design
library(ggspatial) # For map design
library(ggrepel) # For map design
library(patchwork) # For multiple map layout
library(raster) # For manage raster data
library(sf) # For manage vector data.
library(sp)
GB<-readOGR("GBdistrict.shp")
plot(GB)