rotateTextX

0th

Percentile

Rotate x axis labels

Rotate the labels on the x axis to be rotated so that they are vertical, which is often useful when there are many overlapping labels along the x axis.

Usage
rotateTextX()
Details

This function is quite simple, but it can be useful if you don't have the exact syntax to do this engraved in your head.

Value

  • A ggplot2 layer that can be added to an existing ggplot2 object.

Aliases
  • rotateTextX
Examples
if (requireNamespace("ggplot2", quietly = TRUE)) {
  df <- data.frame(x = paste("Letter", LETTERS, sep = "_"),
                   y = seq_along(LETTERS))
  p <- ggplot2::ggplot(df, ggplot2::aes(x, y)) + ggplot2::geom_point()
  p + rotateTextX()
}
Documentation reproduced from package ggExtra, version 0.1.5.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.