rotate_x_labs: Rotate ggplot2 x axis text

Description Usage Arguments Examples

View source: R/vis-rotate-x-labs.R

Description

A convenience function to quickly rotate x-axis labels

Usage

1
rotate_x_labs(angle = 90, hjust = 1, vjust = 0.5, ...)

Arguments

angle

Angle of text rotation (default = 90)

hjust

Horizontal text justification (default = 1)

vjust

Vertical text justification (default = 0.5)

...

Further arguments passed to ggplot2::element_text()

Examples

1
2
3
4
mtcars %>%
ggplot(aes(wt, disp))+
geom_point()+
rotate_x_labs()

cj-holmes/holmesr documentation built on Sept. 20, 2020, 12:44 a.m.