change the orientation of the labels in x axis ggplot code example
Example: ggplot x axis 45 degreees
q + theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1))
q + theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1))