如何使用函数 usmap 更改 R 中的州或县标签大小?

How do I change state or counties label sizes in R with the function usmap?

我正在尝试绘制新墨西哥州的地图,并标记每个县,但标签大小总是比预期的大得多。 这是我到目前为止使用的代码。

plot_usmap("counties", include=("NM"), labels=TRUE, label_color="red")

我的地图最终看起来像这样:

如何更改标签的大小以使其不重叠? 我试过 size= 但这只改变了寄宿生的大小。

感谢您的帮助。

您可以使用以下解决方案设置标签字体大小:

library(usmap)
p <- plot_usmap("counties", include=("NM"), labels=TRUE, label_color="red")

# Set label font size
p$layers[[2]]$aes_params$size <- 5
print(p)