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.

The data is as below.

Thank you.


Elaine





Code

Library(lattice)

bwplot(migration_distance~bird)





data

migration distance (km)    bird group

10987                                      Charadriiformes

9867                                        Charadriiformes

8702                                        Charadriiformes

9432                                        Charadriiformes

9054                                        Charadriiformes

5087                                       Falconiiformes

5783                                       Falconiiformes

5298                                        Falconiiformes

5687                                       Falconiiformes

3987                                        Gruiformes

3298                                        Gruiformes

3567                                        Gruiformes

3409                                        Gruiformes

3321                                        Gruiformes

3598                                        Gruiformes

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to