Re: [R] boxplot group labels

2006-05-14 Thread Gabor Grothendieck
Just one followup. You don't really need "with" in this example since boxplot.formula, itself, has a data argument: boxplot(income~factor(code, levels = rev(levels(code))), play, horizontal = TRUE, boxwex = 0.1) On 5/14/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Change the order o

Re: [R] boxplot group labels

2006-05-14 Thread Gabor Grothendieck
Change the order of the levels in the factor: with(play, boxplot(income~factor(code, levels = rev(levels(code))), horizontal = TRUE, boxwex = 0.1)) On 5/14/06, Alexander Nervedi <[EMAIL PROTECTED]> wrote: > Hi All, > > I would like to control the order in which my boxplots are drawn. When i > iss

Re: [R] boxplot group labels

2006-05-14 Thread Marc Schwartz
On Sun, 2006-05-14 at 19:29 +, Alexander Nervedi wrote: > Hi All, > > I would like to control the order in which my boxplots are drawn. When i > issue the lines below I find that group "a" get plotted lowest, while the > highest letter grade is plotted on the top. I want to plot the letter g

[R] boxplot group labels

2006-05-14 Thread Alexander Nervedi
Hi All, I would like to control the order in which my boxplots are drawn. When i issue the lines below I find that group "a" get plotted lowest, while the highest letter grade is plotted on the top. I want to plot the letter grades in descending order and I was wondering if tere is a quick way