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. [[alternative HTML version deleted]]
deepayan.sarkar at gmail.com
2007-Jul-14 05:38 UTC
[R] change default alphabetic order for bwplot
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