[R] bwplot reorder factor on y axis
deepayan.sarkar at gmail.com
Wed Jan 4 21:29:10 CET 2006
On 1/4/06, Michael Kubovy <kubovy at virginia.edu> 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.
More information about the R-help