I'm baffled as to why the boxplots are not ordering in this plot:
set.seed(200)
x <- data.frame(country=c(rep('UK', 10),
rep("USA", 10),
rep("Ireland", 5)),
wing=c(rnorm(25)))
ggplot(x, aes(reorder(country, wing, median), wing)) + geom_boxplot()
How can I order the boxplots based on highest-lowest medians (left to right)?