ggplot2 rotate axis labels code example Example: rotate axis labels ggplot2 q + theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1))