下面是我的代码的一部分,它给出了情节:(阴影状态是紫色的)
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))+
我想要进行两项修改,但我不知道该怎么做:
1- 如何在中心写阴影状态缩写,字体颜色为黄色。
2-我怎样才能拥有这样的情节标题:组件:为黑色,11为紫色,如阴影状态。

