I am trying to add the name of the column at the end of lines in ggplot. Neither geom_text or geom_label worked.
df %>%
filter(played < 39) %>% #filtering dataset for the season that was played 38 games
filter(place==1) %>% # analysing the champions
#create graph to show the champions
ggplot()+
aes(x=season) +
geom_line(aes(y=points), color = "blue") +
geom_line(aes(y=goals), color="red") +
geom_line(aes(y=won), color = "purple") +
geom_line(aes(y=loss), color = "orange") +
geom_line(aes(y=draw)) +
geom_label() +
labs( title = "Brasileirão",
subtitle = "2006 - 2024"
) +
theme(
)