rotate_axis_text: Rotate axis tick text and adjust their distances to the axis.

View source: R/rotate_axis_text.R

rotate_axis_textR Documentation

Rotate axis tick text and adjust their distances to the axis.

Description

Rotate axis tick text and adjust their distances to the axis.

Usage

rotate_axis_text(
  p,
  text_angle_x = 0,
  text_angle_y = 0,
  hjust_x = NULL,
  hjust_y = NULL,
  vjust_x = NULL,
  vjust_y = NULL
)

Arguments

p

A ggplot2 object.

text_angle_x

Angle of tick text on x-axis. Default = 0.

text_angle_y

Angle of tick text on y-axis. Default = 0.

hjust_x

Vertical distance adjustment of tick text to x-axis. Default = NULL.

hjust_y

Horizontal distance adjustment of tick text to y-axis. Default = NULL.

vjust_x

Horizontal distance adjustment of tick text to x-axis. Default = NULL.

vjust_y

Vertical distance adjustment of tick text to y-axis. Default = NULL.

Value

A ggplot2 object.

Examples

inst/examples/ex-rotate_axis_text.R

gmlang/ezplot documentation built on Sept. 18, 2022, 6:33 a.m.