element_text()
allows customization of location of the plot title at the top of the plot using hjust and vjust arguments
ggplot(mtcars, aes(x=cyl, y=mpg)) + geom_point() + ggtitle("CYL vs MPG") + theme(plot.title=element_text(vjust=0.5, hjust=0.5))
- Is there a way to move the plot title to the bottom of the plot, centered, below the x-axis label?
- It is possible to specify foreground color of plot title using color argument of element_text().
- Is there a way to set background color of the plot title? I would like letters of my plot title to have black background and white foreground.