Rotate the x axis labels in a ggplot
rotateX(angle = 90)
angle | Integer, value in degrees to rotate labels. Default: 90. |
---|
A theme element to rotate labels
# 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()