Hi all, I'm using a forest plot to present the coordinates (plus and minus upper and lower confidence intervals) of a model based on the function supplied by Abhijit (
http://www.r-bloggers.com/forest-plots-using-r-and-ggplot2/) after some necessary editing. This function uses coord_flip() to reverse axes and, as a consequence, the y-axis is presented in reverse order.
A simple example of this effect is part of help for coord_flip as follows:
qplot(cut, price, data=diamonds, geom="boxplot")
# following this plot the order is "fair" to "ideal" as seems sensible. Now use coord_flip():
last_plot() + coord_flip()
# after the coord_flip() the order is "ideal" to "fair".
While using coord_flip() is it possible to ensure that the order is as intended e.g. "fair" to "ideal"?
Thanks for any suggestions,
Alan Kelly