Description Usage Arguments Value Author(s) Examples
View source: R/utils_plotting.R
Rotate the x axis labels in a ggplot
1 | rotateX(angle = 90)
|
angle |
Integer, value in degrees to rotate labels. Default: 90. |
A theme element to rotate labels
Selin Jessa
1 2 3 4 5 6 7 8 | # 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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.