2

I am trying to map New Mexico with each county labeled, but the label size is always much larger than desired. Here is the code I have used so far.

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

and my map ends up looking like this:

map

How do I change the size of the labels to make them not over lap? I have tried size= but that only changed the size of the boarders.

Thanks for the help.

Marco Sandri
  • 23,289
  • 7
  • 54
  • 58

1 Answers1

6

You can set the label font size using the following solution:

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)

enter image description here

Marco Sandri
  • 23,289
  • 7
  • 54
  • 58