This page is dedicated to the management of ggplot2 titles. To add a title with ggplot2, use the ggtitle() function. You can use the “\n” separator to split your title in several lines. Then, you can custom its appearance using the theme() and plot.title() functions. The position of the title is controlled using the hjust (horizontal) and vjust (vertical) arguments. They range from 0 to 1, 0.5 being centered.




Make a search