tilt_x_labels: Tilt x-axis labels.

Description Usage Arguments Examples

View source: R/themes.R

Description

Tilt x-axis labels.

Usage

1
tilt_x_labels(angle = 45, hjust = 1, vjust = 1)

Arguments

angle

The angle text should be displayed at (0 is horizontal, 90 is vertical)

hjust

horizontal justification (0 to 1)

vjust

vertical justification (0 to 1)

Examples

1
2
3
4
mtcars$make <- sapply(rownames(mtcars), function(x) strsplit(x, " ")[[1]][1])
p <- ggplot(mtcars, aes(make, wt)) + geom_point()
p
p + tilt_x_labels()

seaaan/gghlab documentation built on May 29, 2019, 4:24 p.m.