Skip to content
Prev 349297 / 398498 Next

ordering a boxplot

... just for completeness - the more concise way: (no need to go through names()).

boxplot(mydata[,order(apply(mydata,2,median))])

... or descending
boxplot(mydata[,order(-apply(mydata,2,median))])




B.
On Mar 21, 2015, at 7:04 PM, Boris Steipe <boris.steipe at utoronto.ca> wrote: