[R] ggplot, Plot title at the bottom of plot

Sheila the angel from.d.putto at gmail.com
Mon May 4 13:11:28 CEST 2015


Hello All,

I am looking for the answer to simple question:

In ggplot, how to put plot title at the bottom of plot ?

This code :

qplot(rnorm(100)) + ggtitle("My Title")

puts the title at middle and top of plot while I want it to be at middle
and *Bottom* of the plot.

Using

+theme(plot.title = element_text(vjust = 10))

is not a good option as it can write on the top of the x-axis labels and
there might not be enough space for title. Moreover one do not want to
adjust "vjust" value all the time.

Thanks

--

Sheila

	[[alternative HTML version deleted]]



More information about the R-help mailing list