Created attachment 1190 [details] the plot in question example(lm) plot.lm(lm.D9,which=5) The group on the right, including the residuals labelled 17 and 15 (which are correctly labelled), are from the Trt group. This group is labelled Ctl.

Actually it is the plots which are incorrect: the groups are supposed to be in increasing order of standardized residual. Fixed in the trunk (it is getting late for 2.13.0).

Created attachment 1263 [details] example plot.lm(which=5)

Not fixed for me in 2.14.1 In the attached example, most of the residuals are in the wrong groups. This is my data table: >expData Nr. treatment block result 1 1 a 1 30 2 2 a 2 31 3 3 b 1 22 4 4 b 2 20 5 5 c 1 42 6 6 c 2 41 7 7 d 1 61 8 8 d 2 59 9 9 e 1 11 10 10 e 2 12 Then, with >aov.expData<-aov(result~treatment+block,data=expData) and >plot(aov.expData,which=5) i get the attached plot. Only the residuals 3 and 4 are in the right group. Or there is something wrong with my reasoning? Best regards, Alain

(spam comment removed)