Numbered points on plot and in legend

Hello,

Do you know how I could do to display the legend associated with my numbers on my map ?
I added points on a map, and I associated numbers (from my Number column).
Now I would like the name of my points (in my Station column) to be displayed in a legend and associated with the points

Ex: 1: Station A
2: Station B
etc.

Here is the code I have for my map :

ggplot(data = world) +
  geom_sf(fill= "antiquewhite") +
  annotation_scale(location = "bl", width_hint = 0.5) +
  annotation_north_arrow(location = "bl", which_north = "true", 
                         pad_x = unit(0.75, "in"), pad_y = unit(0.5, "in"),
                         style = north_arrow_fancy_orienteering) +
  geom_point(data = df , aes(x = Longitude_deg_in  , y = Latitude_deg_in), size = 3, shape = 21, fill = "orange") +
  geom_text_repel(data = df, aes(x = Longitude_deg_in, y = Latitude_deg_in, label = Number), 
                  fontface = "bold", nudge_x = c(1, -1.5, 2, 2, -1), nudge_y = c(0.25,-0.25, 0.5, 0.5, -0.5)) 

Thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.