我正在尝试绘制地图。有没有办法在地图中用粗体写出城市名称? (我只找到了选择尺寸的方法)。这是我的脚本
right_join(prov2022, dataset, by = "COD_PROV") %>%
ggplot(aes(fill = `real wage`))+
geom_sf(data = ~ subset(., COD_REG == 7 | COD_REG >= 1 & COD_REG <= 3)) +
theme_void() +
theme(legend.title=element_blank())+
geom_sf_text(data = ~ subset(., COD_REG == 7 ), aes(label = city_name), size = 3) +
scale_fill_gradientn(colors = c( "#FFFFFF","#FFFF00", "#FF0000", "#000000")) +
geom_blank()
我想用粗体显示
city_name
,但是在geom_sf_text(data = ~ subset(., COD_REG == 7 ), aes(label = city_name), size = 3)
我找不到方法....(在我的情况下增加尺寸不是一个好的选择因为我有边界不是被越过)