79146415

Date: 2024-10-31 21:45:01
Score: 0.5
Natty:
Report link

Would it work to explicitly call the data in the geom_sf()? Since you are explicitly calling in geom_text(), you also need to call it in geom_sf()

drought_sf %>%
  left_join(drought_rmse, by = 'GEOID') 

  ggplot() +
  geom_sf(data = drought_sf, 
          mapping = aes(fill = estimate), 
          color = NA, alpha = 0.8) +
  labs(fill = "RMSE") +
  scale_fill_viridis_c(labels = scales::dollar_format()) +
  geom_text(color = 'black', data = cities_data, check_overlap = TRUE, aes(x = long, y = lat, label = fixed_name))

sample

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Susan Switzer