align_titles | R Documentation |
Horizontally align ggplot2 title and subtitle
align_titles(align = 0)
align |
Horizontal alignment. |
A ggplot2 theme object.
# library(ggplot2)
# ggplot(mpg, aes(manufacturer, cty)) + geom_boxplot() +
# labs(title = "This is a title", subtitle = "This is a subtitle") +
# align_titles(align = 0.5)
#> A plot with the title and subtitle centered.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.