Re: [Rd] boxplot with formula involving two-factor levels

2016-04-29 Thread peter dalgaard
> On 29 Apr 2016, at 23:54 , d...@stat.oregonstate.edu wrote: > > Hi, > > I noticed two seemingly equivalent call to boxplot will give different plots > (in the way how the combined factor levels are arranged on the x-axis): > > x = factor(rep(c("a", "b", "c"), each=2)); > y = rep(factor(c("o

[Rd] boxplot with formula involving two-factor levels

2016-04-29 Thread diy
Hi, I noticed two seemingly equivalent call to boxplot will give different plots (in the way how the combined factor levels are arranged on the x-axis): x = factor(rep(c("a", "b", "c"), each=2)); y = rep(factor(c("one", "two")), each=3); r = 3; n = r * 6; x = rep(x, 3); y = rep(y, 3); z = rnorm