Marckenley Mercie
Marckenley Mercie

Reputation: 51

Adding subtitle under the main title or adding a subtitle under y axis in R

I was wondering how I can add a subtitle under the main title and the y-axis.

Upvotes: 5

Views: 4609

Answers (1)

jared_mamrot
jared_mamrot

Reputation: 26505

Update

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)

example_3.png

Upvotes: 6

Related Questions