On 1/4/06, Michael Kubovy <[EMAIL PROTECTED]> wrote: > Dear R-helpers, > > In bwplot(pairL ~ asym, oppK) is a factor. It displays pairL in > alphabetical order. How do I tell it to display, pairL in the order I > wish , i.e., so the medians of asym are in ascending order?
See ?reorder.factor, which has a very similar example you can adapt. In your case, you probably want something like: bwplot(reorder(factor(pairL), asym, median) ~ asym, oppK) The call to factor is unnecessary if pairL is already a factor. Deepayan -- http://www.stat.wisc.edu/~deepayan/ ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
