I want to generate the Vietnam Map using an R script which I have done but I cant figure out how to generate the map with custom labels.
library(ggplot2)
library(tidyverse)
library(sp)
library(raster)
library(rgdal)
library(viridis)
library(readxl)
library(maptools)
vnm = getData("GADM", country="Vietnam", level=1)
vn = fortify(vnm,region = "VARNAME_1")
ggplot(data=vn, aes(x=long, y=lat, group=group)) + geom_polygon(aes(fill=id), col="black", show.legend=T)+theme_void()


I am not sure what you mean with "custom labels". Do want different values in the legend, or do you want labels on the map?
Here is a simple example to get started