Adding labels to ends of ggplot lines of differing lengths

You can use filtering to determine which vintages to plot in geom_text. For example, to keep even-month vintages:

data=. %>% 
  arrange(desc(MOB)) %>% 
  group_by(Vintage) %>% 
  slice(1) %>% 
  filter(as.numeric(as.character(Vintage)) %% 2 == 0)
1 Like