[R] Ordering boxplot factors

Joseph LeBouton lebouton at msu.edu
Fri Jan 6 03:27:38 CET 2006


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 at msu.edu




More information about the R-help mailing list