La fonction labs(), à utiliser pendant la construction de votre ggplot, vous permet d’intégrer titre, sous-titres, et légendes.

ggplot(iris, aes(Sepal.Width, Sepal.Length)) +
  geom_point() +
  labs(title = "Mon titre",
       subtitle = "Mon sous titre n sur deux lignes",
       caption = "Ma légende",
       x = "Mon axe x",
       y = "Mon axe y")