[R] change default alphabetic order for bwplot

deepayan.sarkar at gmail.com deepayan.sarkar at gmail.com
Sat Jul 14 07:38:25 CEST 2007


On 7/13/07, gallon li <gallon.li at gmail.com> wrote:
> when producing boxplot from bwplot, I have five groups: Nitrogen, Duration,
> Pressure, A, Z. I wish the graphical display is according to the original
> order. But the R-function bwplot seems to automatically adjust the groups
> according to the alphabetic oder and thus creat a graph for A, Duration,
> Nitrogen, Pressure and Z. How can I specify the original order in bwplot?
>
> This also happens to the older function boxplot.

This has to do with how levels for a factor are computed by default.
help(factor) tells you how to specify your own levels.

-Deepayan



More information about the R-help mailing list