Skip to contents

hjust = 1 and vjust = 1 anchor the end of the text on the tick; the default vjust = 0.5 pushes long labels below the plot, where they get cut.

Usage

theme_rotate_x(angle = 45, size = NULL)

Arguments

angle

Angle of the labels, in degrees.

size

Font size of the labels (NULL: unchanged).

Value

A ggplot2::theme() object to add to a plot.

Examples

library(ggplot2)
ggplot(cohort_sim, aes(GROUP, AGE)) + geom_boxplot() + theme_pub() + theme_rotate_x(45)