ggplot2 center title code example Example: centering ggplot2 titles # Add a theme argument: theme(plot.title = element_text(hjust = 0.5))