[R] boxplot order of the levels

Thomas Kuster thomas at fam-kuster.ch
Tue Aug 22 14:27:28 CEST 2006


i drew a boxplot with:
> boxplot(voxit$AGE ~ voxit$A02X)
and the boxes are from left to right:
Ja Leer Nein wn k.A.

> levels(voxit$A02X)
[1] "Ja"   "Leer" "Nein" "wn"   "k.A." "98"
there are no entries with 98

but i want:
Ja Nein Leer wn k.A.

how can i change the order of the boxes


More information about the R-help mailing list