acid_discrete_coord_flip | R Documentation |
Intelligently flip a plot with discrete data on the X axis.
acid_discrete_coord_flip()
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.
list
of ggproto
objects.
Updated 2023-08-11.
coord_flip()
.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.