I would like to flip the coords for a ggplot2 boxplot where I also do a coordinate transformation.
library(ggplot2)
dat = data.frame(group = factor(c(rep(1,3),rep(2,6))),
vals = c(c(0.1,2.25,1000), c(0.11,0.21,0.21,4.55,5.06,29.48)))
ggplot(dat,aes(group,vals)) + geom_boxplot()
ggplot(dat,aes(group,vals)) + geom_boxplot() + coord_trans(y="log10")
If I just add now "+ coord_flip()", the log scaling of the axis is lost..
ggplot(dat,aes(group,vals)) + geom_boxplot() + coord_trans(y="log10") + coord_flip()
Any way to achieve flipping of coords?
Thanks for any comments!
Best, Stefanie