Rotate the x axis labels in a ggplot

rotateX(angle = 90)

Arguments

angle

Integer, value in degrees to rotate labels. Default: 90.

Value

A theme element to rotate labels

Examples

# gg <- mpg %>% # filter(class %in% c("compact", "suv")) %>% # ggplot(aes(x = displ, y = hwy)) + # geom_point(aes(colour = factor(year))) + # facet_wrap(~ class, ncol = 2) # gg # gg + rotateX()