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