[R] ordering a boxplot

Antonio Silva aolinto.lst at gmail.com
Fri Mar 20 22:20:39 CET 2015


I'm using a dataframe (mydata) where row names are sampling points and
column names are species in a multivariate analysis.

If I write boxplot(mydata) I'll have boxplots for each species abundance in
alphabetical order.

How to get the boxes orderer by the median?

Usually for this I write
but for this to work I need a column for the categories and another column
for the values.

Thanks in advance, best regards.

Antonio Olinto

	[[alternative HTML version deleted]]

More information about the R-help mailing list