acid_discrete_coord_flip: Flip coordinates

acid_discrete_coord_flipR Documentation

Flip coordinates

Description

Intelligently flip a plot with discrete data on the X axis.

Usage

acid_discrete_coord_flip()

Details

This function puts the samples that were near the left origin on the X at the top on the Y axis, making them more human readable.

Value

list of ggproto objects.

Note

Updated 2023-08-11.

See Also

  • coord_flip().

Examples

library(ggplot2)
g <- ggplot(data = mpg, aes(x = class)) +
    geom_bar()
## Notice the difference in Y axis sample order.
g + coord_flip()
g + acid_discrete_coord_flip()

acidgenomics/r-acidplots documentation built on March 30, 2024, 10:16 p.m.