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) ______________________________________________ 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.