[R] boxplot order of the levels

Marc Schwartz MSchwartz at mn.rr.com
Tue Aug 22 14:40:58 CEST 2006


On Tue, 2006-08-22 at 14:27 +0200, Thomas Kuster wrote:
> hello
> 
> 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
> 
> bye
> thomas

See the following post from last week:

https://stat.ethz.ch/pipermail/r-help/2006-August/111289.html

HTH,

Marc Schwartz



More information about the R-help mailing list