This function is only suitable to analyze residuals of ANOVA models. It must not be used to analyze residuals from regression or ANCOVA models.
plotResiduals(model)
an object of the class lm or aov.
residual plots suitable for residual analysis of data from design experiments.