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

acid_coord_flip(object)

Arguments

object

ggplot.

Value

ggplot.

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.

See also

Examples

library(ggplot2) g <- ggplot(data = mpg, aes(x = class)) + geom_bar() print(g)
acid_coord_flip(g)