How to add a title and a caption to a ggplot

Use the labs() function

labs(
  title = "some title",
  caption = "some caption" 
)

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.