rotateX: Rotate the x axis labels in a ggplot

Description Usage Arguments Value Author(s) Examples

View source: R/utils_plotting.R

Description

Rotate the x axis labels in a ggplot

Usage

1
rotateX(angle = 90)

Arguments

angle

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

Value

A theme element to rotate labels

Author(s)

Selin Jessa

Examples

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()

fungenomics/cytobox documentation built on Feb. 13, 2020, 10:51 a.m.