below is part of my code which gives the plot:( shadede states are the purple one )
dt <- statepop %>%
dplyr::mutate(selected = factor(ifelse(full %in% stringr::str_pad(c(s.cls.list[[i]]$State), 5, pad = "0"), "1", "0")))
s.plot <- usmap::plot_usmap(data = dt, values = "selected", color = "grey") +
ggplot2::scale_fill_manual(values = c("#E5E4E2", "purple"),name = length(c(s.cls.list[[i]]$State)))+
labs(title = paste("component",i, sep = " : "))+
theme(plot.title = element_text(color = "purple", size = 14, face = "bold",hjust = 0.5))+
there are two modifications that I want but I do not know how to do:
1- how to write shaded states abbreviation in the center with a font color of let s say yellow.
2- how can I have title of plot such that : component : to be in black and 11 to be in purple like shaded states.