A shortcut to

easy_rotate_x_labels(angle = 90, side = c("left", "middle", "right"), ...)

Arguments

angle

angle through which the text should be rotated. Can also be one of "startattop" or "startatbottom" to define where the text should start.

side

horizontal justification of the text before rotation

...

additional arguments to be passed to element_text

Value

a theme object which can be used in ggplot2 calls.

Details

theme(axis.text.x = element_text(angle, hjust))

Examples

library(ggplot2) ggplot(mtcars, aes(mpg, hp)) + geom_point() + easy_rotate_x_labels()