Share the Gallery !Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

#22_reorder_boxplot_by_names

 

Boxplot is an R function that represents a numeric vector of data that is split in several groups.

By default, groups are given in a factor, ordered by alphabetical order. (it would be A,B,C,D in this exemple).

Sometimes, we need to show groups in a specific order. So it is necessary to reorder the factor, as it is described below.

If you want to use the average value of the groups to reorder them, please visit this other exemple !

If this does not fit your expectation, visit this page that use the same technique !


Not really what you are looking for ? Make a new search !

 


Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz