Reputation: 51
I was wondering how I can add a subtitle under the main title and the y-axis.
Upvotes: 5
Views: 4609
Reputation: 26505
Sounds like this is what you want:
plot(mtcars[3:4])
title(main = "My Plot")
mysubtitle = "Subtitle here"
anothersubtitle = "Another subtitle here"
mtext(side = 3, line = 0.25, at = 1, adj = -2, mysubtitle)
mtext(side = 2, line = 2, anothersubtitle)
Upvotes: 6