[R] locating boxplot in bwplot (lattice)

Ben Bolker bbolker at gmail.com
Fri Feb 22 23:29:55 CET 2013


Elaine Kuo <elaine.kuo.tw <at> gmail.com> writes:

> 
> Hello
> 
> I am using lattice bwplot to draw migration distance of three groups of
> birds.
> 
> The boxplots from the left to right is displayed
> in alphabetic order of the boxplot names, as the default setting.
> 
> However, I would like the boxplots from the left to right to be displayed
> according to the migration distance from the short values to the long ones.
> 
> In the data below, from the left to the right should be Gruiformes,
> Falconiiformes, and Charadriiformes.
> 
> Please kindly advise how to modify the code below.
> 

 Define the order of the levels of your factor 
accordingly. Take a look at

http://stackoverflow.com/questions/15033107/
  specifing-order-of-lattice-plot-panels

(broken URL to meet gmane line length limits)



More information about the R-help mailing list