césar huamani ninahuanca Asked: 2020-12-17 11:54:26 +0800 CST 2020-12-17 11:54:26 +0800 CST 2020-12-17 11:54:26 +0800 CST How to align a subtitle in R plot? 772 I have the following vector. a<-sample(1:20, 300, T) And I want to plot it on a bar chart. barplot(table(a), sub = "quiero el subtítulo a la izquierda") How do I align my caption to the left of the chart? I have tried with posandadj But I have had no results. Thank you very much in advance r 1 Answers Voted Best Answer Patricio Moracho 2020-12-17T12:36:26+08:002020-12-17T12:36:26+08:00 This should work: barplot(table(a), adj=0, sub = "quiero el subtítulo a la izquierda") And if not, you can test the general title with a mtext(): barplot(table(a)) mtext(side=1, line=3, adj=0, "quiero el subtítulo a la izquierda")
This should work:
And if not, you can test the general title with a
mtext()
: