How to add a title and a caption to a ggplot

How do I add a title and a caption to this ggplot? Somehow I missed that in the directions and everything else is finally correct with this graph.

ggplot(plotVar, aes(x=Type,y=VaR, fill= Ticker))+geom_bar (stat="identity", position = "dodge")

I did and it did not work. I thought someone here might have an idea.

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.

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