[R] Ordering boxplot factors

From: Joseph LeBouton <lebouton_at_msu.edu>
Date: Fri 06 Jan 2006 - 13:27:38 EST


Hi all,

what a great help list! I hope someone can help me with this puzzle...

I'm trying to find a simple way to do:

boxplot(obs~factor)

so that the factors are ordered left-to-right along the x-axis by median, not alphabetically by factor name.

Complicated ways abound, but I'm hoping for a magical one-liner that'll do the trick.

Any suggestions would be treasured.

Thanks,

-jlb
--



Joseph P. LeBouton
Forest Ecology PhD Candidate
Department of Forestry
Michigan State University
East Lansing, Michigan 48824

Office phone: 517-355-7744
email: lebouton@msu.edu



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jan 06 14:34:22 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:53 EST