Left align text

left_align(plot_name, pieces)

Arguments

plot_name

name of the plot

pieces

elements like title, subtitle, caption

Value

ggplot2 object with aligned title

Author

https://github.com/bbc/bbplot/blob/master/R/finalise_plot.R

Examples

if (FALSE) { ggpubr::ggarrange(left_align(plot1, c("subtitle", "title", "caption")), ncol = 1, nrow = 1) }