Produces plots of residuals for assumption checking of linear (mixed) model.
Usage
resplot(
model.obj,
shapiro = TRUE,
call = FALSE,
label.size = 10,
axes.size = 10,
call.size = 9,
mod.obj
)
resplt(
model.obj,
shapiro = TRUE,
call = FALSE,
label.size = 10,
axes.size = 10,
call.size = 9,
mod.obj
)
Arguments
- model.obj
An
aov
,lm
,lme
(nlme::lme()
),lmerMod
(lme4::lmer()
),asreml
ormmer
(sommer) model object.- shapiro
(Logical) Display the Shapiro-Wilks test of normality on the plot?
- call
(Logical) Display the model call on the plot?
- label.size
A numeric value for the size of the label (A,B,C) font point size.
- axes.size
A numeric value for the size of the axes label font size in points.
- call.size
A numeric value for the size of the model displayed on the plot.
- mod.obj
Deprecated to be consistent with other functions. Please use
model.obj
instead.
Examples
dat.aov <- aov(Petal.Length ~ Petal.Width, data = iris)
resplot(dat.aov)
resplt(dat.aov, call = TRUE)