View source: R/rotate_axis_text.R
rotate_axis_text | R Documentation |
Rotate axis tick text and adjust their distances to the axis.
rotate_axis_text( p, text_angle_x = 0, text_angle_y = 0, hjust_x = NULL, hjust_y = NULL, vjust_x = NULL, vjust_y = NULL )
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. |
A ggplot2 object.
inst/examples/ex-rotate_axis_text.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.